diff options
| author | Tom Yu <tlyu@mit.edu> | 2002-10-06 01:44:27 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2002-10-06 01:44:27 +0000 |
| commit | c1a37e0a718448c935ffaf50dcdb84aac69f30ed (patch) | |
| tree | 0315d3265e39be983755bcc5c26bcbd9b9f46948 /src | |
| parent | 50803405a7bebe81bd3046bd8976f79f82084069 (diff) | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/kdc/ChangeLog | 5 | ||||
| -rw-r--r-- | src/kdc/do_as_req.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ba758803fc..4823515cc1 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-05 Tom Yu <tlyu@mit.edu> + + * do_as_req.c (process_as_req): Apply fix from Kevin Coffman to + avoid leaking padata. + 2002-09-26 Ken Raeburn <raeburn@mit.edu> * 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 77a1afd27d..e308d1140d 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); |
