From: Tom Yu Date: Mon, 5 Feb 2001 23:11:49 +0000 (+0000) Subject: * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free; X-Git-Tag: krb5-1.3-alpha1~1668 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c9a2d5bab7b556d35f2fd51442050f8b5457e3e;p=krb5.git * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free; caller should free v5tkt. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12995 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 27718a831..78ce8ca57 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +2001-02-05 Tom Yu + + * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free; + caller should free v5tkt. + 2000-10-17 Ezra Peisach * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now take diff --git a/src/krb524/cnv_tkt_skey.c b/src/krb524/cnv_tkt_skey.c index 01a68e834..8aa730f93 100644 --- a/src/krb524/cnv_tkt_skey.c +++ b/src/krb524/cnv_tkt_skey.c @@ -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;