Applied patch submitted by Doug Engbert, so that the configurable
authorTheodore Tso <tytso@mit.edu>
Thu, 11 Jan 1996 02:03:41 +0000 (02:03 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 11 Jan 1996 02:03:41 +0000 (02:03 +0000)
authentication patch takes into account the null entry at the end of
the list.

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

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

index 6d5335863fd92d2d8483cd1d2c96cdba3194f55d..b512c1c737be2eb64612d1d1e85729f83a978726 100644 (file)
@@ -1,3 +1,10 @@
+Wed Jan 10 21:01:36 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * walk_rtree.c (krb5_walk_realm_tree): Applied patch submitted by
+               Doug Engbert, so that the configurable authentication
+               patch takes into account the null entry at the end of the
+               list.
+
 Tue Jan  9 22:04:09 1996  Theodore Y. Ts'o  <tytso@dcl>
 
        * fwd_tgt.c (krb5_fwd_tgt_creds): New function which handles all
index 886085f77e2351cc399c97faad7e8059c887db6c..835d899c4361586f183715abca4354f945df5352 100644 (file)
@@ -138,6 +138,7 @@ krb5_walk_realm_tree(context, client, server, tree, realm_branch_char)
                cap_nodes[links] = cap_server; /* put server on end of list */
                                                /* this simplifies the code later and make */
                                                /* cleanup eaiser as well */
+               links++;                /* count the null entry at end */
        } else {                        /* no path use hierarchical method */
        krb5_xfree(cap_names[2]); /* failed, don't need server string */
 #endif
@@ -227,6 +228,7 @@ krb5_walk_realm_tree(context, client, server, tree, realm_branch_char)
        return retval;
     }
 #ifdef CONFIGURABLE_AUTHENTICATION_PATH
+       links--;                                /* dont count the null entry on end */
        if (cap_code == 0) {    /* found a path above */
                tmpcrealm.data = client->data;
                tmpcrealm.length = client->length;