with a realm with the same length as our own. ('||' should have been '&&')
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4634
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Nov 7 22:11:01 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * kdc_util.c (kdc_process_tgs_req): Fix lineage check so that we
+ don't fail if we're cross-authenticating with a realm with
+ the same length as our own. ('||' should have been '&&')
+
Fri Nov 4 17:47:46 1994 Theodore Y. Ts'o (tytso@dcl)
* do_as_req.c (process_as_req): Use published interface to call
if (foreign_server) {
krb5_data *tkt_realm = krb5_princ_realm(ticket_enc->client);
krb5_data *tgs_realm = krb5_princ_realm(tgs_server);
- if (tkt_realm->length == tgs_realm->length ||
+ if (tkt_realm->length == tgs_realm->length &&
!memcmp(tkt_realm->data, tgs_realm->data, tgs_realm->length)) {
/* someone in a foreign realm claiming to be local */
syslog(LOG_INFO, "PROCESS_TGS: failed lineage check");