diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-05-03 21:43:42 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2013-04-22 18:29:59 -0400 |
commit | 93906b39fca90c1c8f23aca0b8a314494a9cde51 (patch) | |
tree | 7d19bb2b15a91838835b2948f802714d4642ae76 | |
parent | af1796a13c0c2878f09c3ea3dc0ae1727e324f1f (diff) | |
download | krb5-93906b39fca90c1c8f23aca0b8a314494a9cde51.zip krb5-93906b39fca90c1c8f23aca0b8a314494a9cde51.tar.gz krb5-93906b39fca90c1c8f23aca0b8a314494a9cde51.tar.bz2 |
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.
(cherry picked from commit 0ae663d35b7dcbf2c469ad0688a67f4d1c0e425e)
ticket: 7612 (new)
version_fixed: 1.9.5
status: resolved
-rw-r--r-- | src/lib/krb5/krb/vfy_increds.c | 7 |
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 5eeda42..ad15b1a 100644 --- a/src/lib/krb5/krb/vfy_increds.c +++ b/src/lib/krb5/krb/vfy_increds.c @@ -14,8 +14,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; @@ -43,11 +41,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); } |