svn rev #23480: trunk/src/lib/gssapi/krb5/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Dec 17 15:03:16 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23480
Commit By: ghudson
Log Message:
Fix a cleanup handler in the store_creds code; krb5_cc_close doesn't
handle NULL arguments, so we have to check.
Changed Files:
U trunk/src/lib/gssapi/krb5/store_cred.c
Modified: trunk/src/lib/gssapi/krb5/store_cred.c
===================================================================
--- trunk/src/lib/gssapi/krb5/store_cred.c 2009-12-17 04:49:27 UTC (rev 23479)
+++ trunk/src/lib/gssapi/krb5/store_cred.c 2009-12-17 20:03:16 UTC (rev 23480)
@@ -126,8 +126,8 @@
cleanup:
if (kcred != NULL)
k5_mutex_unlock(&kcred->lock);
-
- krb5_cc_close(context, ccache);
+ if (ccache != NULL)
+ krb5_cc_close(context, ccache);
krb5_free_context(context);
return major_status;
More information about the cvs-krb5
mailing list