From: Greg Hudson Date: Wed, 6 May 2009 18:52:44 +0000 (+0000) Subject: In pa_sam, use the correct function to free sam_challenge in the X-Git-Tag: krb5-1.8-alpha1~488 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b89fe040c3673c700b3f47d79bc380692b9ba846;p=krb5.git 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 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 693791f85..5fb8adde2 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,