pull up r22319 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 11 May 2009 20:56:16 +0000 (20:56 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 11 May 2009 20:56:16 +0000 (20:56 +0000)
 ------------------------------------------------------------------------
 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

src/lib/krb5/krb/preauth2.c

index 73f4e79b613b95c226536bbd39aa17d604b3c477..ed05babe37daec6b7330d20599515e5056e3322a 100644 (file)
@@ -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,