From: Tom Yu Date: Sun, 6 Oct 2002 01:44:27 +0000 (+0000) Subject: * do_as_req.c (process_as_req): Apply fix from Kevin Coffman to X-Git-Tag: krb5-1.3-alpha1~341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1a37e0a718448c935ffaf50dcdb84aac69f30ed;p=krb5.git * do_as_req.c (process_as_req): Apply fix from Kevin Coffman to avoid leaking padata. ticket: 1206 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14910 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ba758803f..4823515cc 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-05 Tom Yu + + * do_as_req.c (process_as_req): Apply fix from Kevin Coffman to + avoid leaking padata. + 2002-09-26 Ken Raeburn * network.c (struct connection): New field start_time. diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index 77a1afd27..e308d1140 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -447,7 +447,10 @@ errout: status); } - krb5_free_keyblock_contents(kdc_context, &encrypting_key); + if (encrypting_key.contents) + krb5_free_keyblock_contents(kdc_context, &encrypting_key); + if (reply.padata) + krb5_free_pa_data(kdc_context, reply.padata); if (cname) free(cname);