svn rev #23945: trunk/src/lib/krb5/krb/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Apr 27 05:02:48 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23945
Commit By: ghudson
Log Message:
Fix a backwards check in get_cached_tgt() in the TGS code.
Changed Files:
U trunk/src/lib/krb5/krb/get_creds.c
Modified: trunk/src/lib/krb5/krb/get_creds.c
===================================================================
--- trunk/src/lib/krb5/krb/get_creds.c 2010-04-26 19:15:41 UTC (rev 23944)
+++ trunk/src/lib/krb5/krb/get_creds.c 2010-04-27 09:02:48 UTC (rev 23945)
@@ -733,14 +733,14 @@
*tgt = NULL;
/* Construct the principal krbtgt/<realm>@<client realm>. The realm
- * won't matter unless we're getting the local TGT. */
+ * won't matter if we're getting a foreign TGT. */
code = krb5int_tgtname(context, realm, &ctx->client->realm, &tgtname);
if (code != 0)
goto cleanup;
- /* Match the TGT realm only if we're getting the local TGT. */
+ /* Don't match the TGT realm if we're getting a foreign TGT. */
flags = KRB5_TC_SUPPORTED_KTYPES;
- if (local_realm)
+ if (!local_realm)
flags |= KRB5_TC_MATCH_SRV_NAMEONLY;
/* Construct a matching cred for the ccache query. */
More information about the cvs-krb5
mailing list