svn rev #23415: branches/fast-negotiate/src/lib/krb5/ccache/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 2 11:16:29 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23415
Commit By: hartmans
Log Message:
Initialize creds to 0
Changed Files:
U branches/fast-negotiate/src/lib/krb5/ccache/ccfns.c
Modified: branches/fast-negotiate/src/lib/krb5/ccache/ccfns.c
===================================================================
--- branches/fast-negotiate/src/lib/krb5/ccache/ccfns.c 2009-12-02 16:16:26 UTC (rev 23414)
+++ branches/fast-negotiate/src/lib/krb5/ccache/ccfns.c 2009-12-02 16:16:29 UTC (rev 23415)
@@ -280,13 +280,14 @@
{
krb5_error_code ret;
krb5_creds cred;
+ memset(&cred, 0, sizeof(cred));
ret = build_conf_principals(context, id, principal, key, &cred);
if (ret)
goto out;
ret = krb5_cc_remove_cred(context, id, 0, &cred);
- if (ret && ret != KRB5_CC_NOTFOUND)
+ if (ret && ret != KRB5_CC_NOTFOUND && ret != KRB5_CC_NOSUPP)
goto out;
cred.ticket.data = malloc(data->length);
More information about the cvs-krb5
mailing list