svn rev #22317: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue May 5 13:11:48 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22317
Commit By: ghudson
Log Message:
Fix a memory leak in pa_sam.
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-05 17:08:54 UTC (rev 22316)
+++ trunk/src/lib/krb5/krb/preauth2.c 2009-05-05 17:11:48 UTC (rev 22317)
@@ -876,8 +876,11 @@
*etype = ENCTYPE_DES_CBC_CRC;
if ((ret = (gak_fct)(context, request->client, *etype, prompter,
- prompter_data, salt, s2kparams, as_key, gak_data)))
- return(ret);
+ prompter_data, salt, s2kparams, as_key,
+ gak_data))) {
+ krb5_free_sam_challenge(context, sam_challenge);
+ return(ret);
+ }
}
snprintf(name, sizeof(name), "%.*s",
SAMDATA(sam_challenge->sam_type_name, "SAM Authentication",
More information about the cvs-krb5
mailing list