svn rev #23507: branches/anonymous/src/lib/krb5/krb/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 23 16:10:40 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23507
Commit By: hartmans
Log Message:
Ignore transited realm checking for anonymous realm
Changed Files:
U branches/anonymous/src/lib/krb5/krb/chk_trans.c
Modified: branches/anonymous/src/lib/krb5/krb/chk_trans.c
===================================================================
--- branches/anonymous/src/lib/krb5/krb/chk_trans.c 2009-12-23 21:10:36 UTC (rev 23506)
+++ branches/anonymous/src/lib/krb5/krb/chk_trans.c 2009-12-23 21:10:40 UTC (rev 23507)
@@ -315,6 +315,7 @@
krb5_data trans;
struct check_data cdata;
krb5_error_code r;
+ const krb5_data *anonymous;
trans.length = trans_in->length;
trans.data = (char *) trans_in->data;
@@ -327,6 +328,11 @@
(int) srealm->length, srealm->data));
if (trans.length == 0)
return 0;
+ anonymous = krb5_anonymous_realm();
+ if (crealm->length == anonymous->length
+ && (memcmp(crealm->data, anonymous->data, anonymous->length) == 0))
+ return 0; /*Nothing to check for anonymous*/
+
r = krb5_walk_realm_tree (ctx, crealm, srealm, &cdata.tgs,
KRB5_REALM_BRANCH_CHAR);
if (r) {
More information about the cvs-krb5
mailing list