commit dc5c665caf83f867b6188be7b4558b6a514bcf63 Author: tlyu tlyu@dc483132-0cff-0310-8789-dd5450dbe970 Date: Mon Feb 8 20:55:12 2010 +0000
ticket: 6599 version_fixed: 1.8 status: resolved
pull up r23672 from trunk
------------------------------------------------------------------------ r23672 | tlyu | 2010-01-26 13:43:29 -0500 (Tue, 26 Jan 2010) | 6 lines
ticket: 6599 target_version: 1.8 tags: pullup
Apply patch from Arlene Berry to plug a memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@23700 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/rd_req_dec.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) --- diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index 49f07f7..3a9b9ee 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -114,8 +114,10 @@ rd_req_decrypt_tkt_part(krb5_context context, const krb5_ap_req *req,
while ((code = krb5_kt_next_entry(context, keytab, &ktent, &cursor)) == 0) { - if (ktent.key.enctype != req->ticket->enc_part.enctype) + if (ktent.key.enctype != req->ticket->enc_part.enctype) { + (void) krb5_free_keytab_entry_contents(context, &ktent); continue; + }
retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket);
authhub-commits@lists.fedorahosted.org