* rd_req_dec.c (krb5_rd_req_decoded_opt): Pass server realm to
authorKen Raeburn <raeburn@mit.edu>
Fri, 7 Sep 2001 11:19:24 +0000 (11:19 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 7 Sep 2001 11:19:24 +0000 (11:19 +0000)
transited-list check, not local realm, in case they're different.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13737 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/rd_req_dec.c

index 7f156034e428a86f2a125724d534a5892a98a2fa..5fef9238bfe6a754f2f9084f968f0e0122493007 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-07  Ken Raeburn  <raeburn@mit.edu>
+
+       * rd_req_dec.c (krb5_rd_req_decoded_opt): Pass server realm to
+       transited-list check, not local realm, in case they're different.
+
 2001-08-21  Ken Raeburn  <raeburn@mit.edu>
 
        * walk_rtree.c (krb5_walk_realm_tree): Initialize slen to silence
index 4e9f44ea0f85abe8521c09b360d9e2ae6bc8c1dd..31c02dd27ee2e42284c477f19f52db8c06644b99 100644 (file)
@@ -188,7 +188,6 @@ krb5_rd_req_decoded_opt(context, auth_context, req, server, keytab,
     /* Hierarchical Cross-Realm */
   
     {
-       krb5_data        lrealm;
        krb5_data      * realm;
        krb5_transited * trans;
   
@@ -200,12 +199,11 @@ krb5_rd_req_decoded_opt(context, auth_context, req, server, keytab,
         * transited are within the hierarchy between the client's realm  
         * and the local realm.                                        
         */
-       if (trans->tr_contents.data && trans->tr_contents.data[0]) {
-            krb5_get_default_realm(context, &(lrealm.data));
-            lrealm.length = strlen(lrealm.data);
-            retval = krb5_check_transited_list(context, &(trans->tr_contents), 
-                                              realm, &lrealm);
-            free(lrealm.data);
+       if (trans->tr_contents.data && trans->tr_contents.data[0]) {
+           retval = krb5_check_transited_list(context, &(trans->tr_contents), 
+                                              realm,
+                                              krb5_princ_realm (context,
+                                                                server));
        }
     }