]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Don't remove ccache creds before storing them
authorGreg Hudson <ghudson@mit.edu>
Thu, 1 May 2014 22:11:32 +0000 (18:11 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 7 May 2014 16:58:34 +0000 (12:58 -0400)
Revert #6291, which attempts to suppress duplicate credentials by
calling krb5_cc_remove in krb5_cc_store_cred.  Most of our ccache
types don't implement remove_cred, and avoiding duplicate credentials
is a responsibility better suited to the ccache implementation for
atomicity reasons.

Removing this call gets rid of the misleading "Removing ... from ..."
messages in trace logs.

ticket: 7906 (new)

src/lib/krb5/ccache/ccfns.c

index 1a0bed0acdc8029ff1b58b5e824e7d88e9d81350..1084d51912ba529594ae9df78e023c4d3f36ccf4 100644 (file)
@@ -84,9 +84,6 @@ krb5_cc_store_cred(krb5_context context, krb5_ccache cache,
     krb5_ticket *tkt;
     krb5_principal s1, s2;
 
-    /* remove any dups */
-    krb5_cc_remove_cred(context, cache, KRB5_TC_MATCH_AUTHDATA, creds);
-
     TRACE_CC_STORE(context, cache, creds);
     ret = cache->ops->store(context, cache, creds);
     if (ret) return ret;