From: Ezra Peisach Date: Tue, 30 Jan 2001 20:55:48 +0000 (+0000) Subject: * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Free X-Git-Tag: krb5-1.3-alpha1~1672 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efc16493653b4173c54daf40f33e57097d99af81;p=krb5.git * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Free krb5_keytab_entry if call to krb5_decrypt_tkt_part() fails. [krb5-libs/855 reported by guy@packeteer.com] Pullup from krb5-1-2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12975 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 169964c80..d05ca178e 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +2001-01-30 Ezra Peisach + + * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Free + krb5_keytab_entry if call to krb5_decrypt_tkt_part() + fails. [krb5-libs/855 reported by guy@packeteer.com] + 2001-01-19 Ken Raeburn * preauth.c: Don't use PROTOTYPE macro, just always use the @@ -53,7 +59,7 @@ 2000-10-04 Ezra Peisach * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Fix memory leak if - krb5_decrypt_tkt_part() fails. (krb5-libs/855) + krb5_decrypt_tkt_part() fails. [krb5-libs/855] 2000-10-03 Ezra Peisach diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index 4a799fc65..4e9f44ea0 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -84,7 +84,7 @@ krb5_rd_req_decrypt_tkt_part(context, req, keytab) return retval; retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket); - /* If error, we will return after freeing memory */ + /* Upon error, Free keytab entry first, then return */ (void) krb5_kt_free_entry(context, &ktent); return retval;