svn rev #22319: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed May 6 14:52:44 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22319
Commit By: ghudson
Log Message:
ticket: 6210

In pa_sam, use the correct function to free sam_challenge in the
success path.



Changed Files:
U   trunk/src/lib/krb5/krb/preauth2.c
Modified: trunk/src/lib/krb5/krb/preauth2.c
===================================================================
--- trunk/src/lib/krb5/krb/preauth2.c	2009-05-06 15:56:21 UTC (rev 22318)
+++ trunk/src/lib/krb5/krb/preauth2.c	2009-05-06 18:52:44 UTC (rev 22319)
@@ -1026,7 +1026,7 @@
     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,




More information about the cvs-krb5 mailing list