projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0078419
)
Fix a cleanup handler in the store_creds code; krb5_cc_close doesn't
author
Greg Hudson
<ghudson@mit.edu>
Thu, 17 Dec 2009 20:03:16 +0000
(20:03 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Thu, 17 Dec 2009 20:03:16 +0000
(20:03 +0000)
handle NULL arguments, so we have to check.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23480
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/gssapi/krb5/store_cred.c
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/krb5/store_cred.c
b/src/lib/gssapi/krb5/store_cred.c
index a8ed6ffbb0d52df0e97aff20da98061a57a2d0cd..65c903b5867a02e7917932f99a9dbaa7f40da4c0 100644
(file)
--- a/
src/lib/gssapi/krb5/store_cred.c
+++ b/
src/lib/gssapi/krb5/store_cred.c
@@
-126,8
+126,8
@@
copy_initiator_creds(OM_uint32 *minor_status,
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;