From ead84caee261c3ef032e9eba713f261c90a91347 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 28 May 2010 18:26:43 +0000 Subject: [PATCH] In krb5_cc_set_config, don't call krb5_cc_remove_cred; it's redundant 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/krb5/ccache/ccfns.c b/src/lib/krb5/ccache/ccfns.c index f08bfb98d..088fdf6e3 100644 --- a/src/lib/krb5/ccache/ccfns.c +++ b/src/lib/krb5/ccache/ccfns.c @@ -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"); -- 2.26.2