From: Tom Yu Date: Mon, 11 May 2009 20:56:16 +0000 (+0000) Subject: pull up r22319 from trunk X-Git-Tag: krb5-1.7-beta2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f667dcc6f55d06cf91ed8479861972728baa477;p=krb5.git pull up r22319 from trunk ------------------------------------------------------------------------ r22319 | ghudson | 2009-05-06 14:52:44 -0400 (Wed, 06 May 2009) | 5 lines Changed paths: M /trunk/src/lib/krb5/krb/preauth2.c ticket: 6210 In pa_sam, use the correct function to free sam_challenge in the success path. ticket: 6210 version_fixed: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22337 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 73f4e79b6..ed05babe3 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -1019,7 +1019,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,