svn rev #25847: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu May 3 17:43:42 EDT 2012
http://src.mit.edu/fisheye/changelog/krb5/?cs=25847
Commit By: ghudson
Log Message:
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
Changed Files:
U trunk/src/lib/krb5/krb/vfy_increds.c
Modified: trunk/src/lib/krb5/krb/vfy_increds.c
===================================================================
--- trunk/src/lib/krb5/krb/vfy_increds.c 2012-05-03 20:28:02 UTC (rev 25846)
+++ trunk/src/lib/krb5/krb/vfy_increds.c 2012-05-03 21:43:42 UTC (rev 25847)
@@ -32,8 +32,6 @@
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 @@
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);
}
More information about the cvs-krb5
mailing list