summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-05-03 21:43:42 +0000
committerGreg Hudson <ghudson@mit.edu>2012-05-03 21:43:42 +0000
commit0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e (patch)
tree52ed371a91657df524c37a6d3006b7abbe42457a /src
parent4f16878eea03dd20d992c6054afa68aab97cd4ac (diff)
downloadkrb5-0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e.tar.gz
krb5-0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e.tar.xz
krb5-0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e.zip
Make verify_init_creds work with existing ccache
As the file ccache implementation currently stands, we don't want to turn off TC_OPENCLOSE on a file cache we're writing to, or it will be opened read-only and stores to it will fail. Reported by Russ Allbery. ticket: 5126 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25847 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/vfy_increds.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/krb5/krb/vfy_increds.c b/src/lib/krb5/krb/vfy_increds.c
index bd993c21f9..fc82860f72 100644
--- a/src/lib/krb5/krb/vfy_increds.c
+++ b/src/lib/krb5/krb/vfy_increds.c
@@ -32,8 +32,6 @@ copy_creds_except(krb5_context context, krb5_ccache incc,
flags = 0; /* turns off OPENCLOSE mode */
if ((code = krb5_cc_set_flags(context, incc, flags)))
return(code);
- if ((code = krb5_cc_set_flags(context, outcc, flags)))
- return(code);
if ((code = krb5_cc_start_seq_get(context, incc, &cur)))
goto cleanup;
@@ -61,11 +59,6 @@ cleanup:
else
code = krb5_cc_set_flags(context, incc, flags);
- if (code)
- krb5_cc_set_flags(context, outcc, flags);
- else
- code = krb5_cc_set_flags(context, outcc, flags);
-
return(code);
}