In krb5_cc_set_config, don't call krb5_cc_remove_cred; it's redundant
authorGreg Hudson <ghudson@mit.edu>
Fri, 28 May 2010 18:26:43 +0000 (18:26 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 28 May 2010 18:26:43 +0000 (18:26 +0000)
with the krb5_cc_remove_cred call in krb5_cc_store_cred.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24110 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ccfns.c

index f08bfb98d6ecf95217bfabbbb1108f71fe9cb66f..088fdf6e36ff92e1a7065e276f3e04b0b68dd7ef 100644 (file)
@@ -286,10 +286,6 @@ krb5_cc_set_config (krb5_context context, krb5_ccache id,
     if (ret)
         goto out;
 
-    ret = krb5_cc_remove_cred(context, id, 0, &cred);
-    if (ret && ret != KRB5_CC_NOTFOUND && ret != KRB5_CC_NOSUPP)
-        goto out;
-
     cred.ticket.data = malloc(data->length);
     if (cred.ticket.data == NULL) {
         krb5_set_error_message(context, ENOMEM, "malloc: out of memory");