svn rev #22315: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue May 5 12:57:42 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22315
Commit By: ghudson
Log Message:
In pa_sam_2, free sc2 in an error-handling case where it was leaked.
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 16:55:58 UTC (rev 22314)
+++ trunk/src/lib/krb5/krb/preauth2.c 2009-05-05 16:57:42 UTC (rev 22315)
@@ -1417,8 +1417,10 @@
retval = decode_krb5_sam_challenge_2_body(&sc2->sam_challenge_2_body, &sc2b);
- if (retval)
+ if (retval) {
+ krb5_free_sam_challenge_2(context, sc2);
return(retval);
+ }
if (!sc2->sam_cksum || ! *sc2->sam_cksum) {
krb5_free_sam_challenge_2(context, sc2);
More information about the cvs-krb5
mailing list