From c1a37e0a718448c935ffaf50dcdb84aac69f30ed Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sun, 6 Oct 2002 01:44:27 +0000 Subject: [PATCH] * 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 --- src/kdc/ChangeLog | 5 +++++ src/kdc/do_as_req.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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); -- 2.26.2