* cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;
authorTom Yu <tlyu@mit.edu>
Mon, 5 Feb 2001 23:11:49 +0000 (23:11 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 5 Feb 2001 23:11:49 +0000 (23:11 +0000)
caller should free v5tkt.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12995 dc483132-0cff-0310-8789-dd5450dbe970

src/krb524/ChangeLog
src/krb524/cnv_tkt_skey.c

index 27718a831d4a6c5df95e6abd70da03f97e94e2a1..78ce8ca57822816736e4dc8b70fdb4bb5adc23d0 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-05  Tom Yu  <tlyu@mit.edu>
+
+       * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;
+       caller should free v5tkt.
+
 2000-10-17  Ezra Peisach  <epeisach@mit.edu>
 
        * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now take
index 01a68e834ad7274648b5399a137b4b2d8ab741f9..8aa730f93513c1a23d79d5de32178a1b93c37edc 100644 (file)
@@ -68,7 +68,6 @@ int krb524_convert_tkt_skey(context, v5tkt, v4tkt, v5_skey, v4_skey,
 
      v5tkt->enc_part2 = NULL;
      if ((ret = krb5_decrypt_tkt_part(context, v5_skey, v5tkt))) {
-         krb5_free_ticket(context, v5tkt);
          return ret;
      }
      v5etkt = v5tkt->enc_part2;