summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/preauth2.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-05-06 18:52:44 +0000
committerGreg Hudson <ghudson@mit.edu>2009-05-06 18:52:44 +0000
commitb89fe040c3673c700b3f47d79bc380692b9ba846 (patch)
treed63773c4375ee50bb607d0c697f2a1dccd750975 /src/lib/krb5/krb/preauth2.c
parent51749e5e6d3256f071634f150d0393adce8d5629 (diff)
downloadkrb5-b89fe040c3673c700b3f47d79bc380692b9ba846.tar.gz
krb5-b89fe040c3673c700b3f47d79bc380692b9ba846.tar.xz
krb5-b89fe040c3673c700b3f47d79bc380692b9ba846.zip
In pa_sam, use the correct function to free sam_challenge in the
success path. ticket: 6210 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22319 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/preauth2.c')
-rw-r--r--src/lib/krb5/krb/preauth2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c
index 693791f85f..5fb8adde2a 100644
--- a/src/lib/krb5/krb/preauth2.c
+++ b/src/lib/krb5/krb/preauth2.c
@@ -1026,7 +1026,7 @@ krb5_error_code pa_sam(krb5_context context,
sam_response.sam_type = sam_challenge->sam_type;
sam_response.magic = KV5M_SAM_RESPONSE;
- free(sam_challenge);
+ krb5_free_sam_challenge(context, sam_challenge);
/* encode the encoded part of the response */
if ((ret = encode_krb5_enc_sam_response_enc(&enc_sam_response_enc,