From 3c9a2d5bab7b556d35f2fd51442050f8b5457e3e Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 5 Feb 2001 23:11:49 +0000 Subject: [PATCH] * 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 --- src/krb524/ChangeLog | 5 +++++ src/krb524/cnv_tkt_skey.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.26.2