Pass extra argument to krb5_walk_realm_tree.
authorJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 02:51:05 +0000 (02:51 +0000)
committerJohn Carr <jfc@mit.edu>
Fri, 21 Aug 1992 02:51:05 +0000 (02:51 +0000)
Principal type changes.

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

src/lib/krb5/krb/gc_frm_kdc.c

index d76918eee24639c168b20dbc14a4005d9df591ce..4aa8d9dea820ae58c102d63e8ae8ee6f2e29404f 100644 (file)
@@ -127,7 +127,7 @@ krb5_get_cred_from_kdc (ccache, cred, tgts)
        /* get a list of realms to consult */
        retval = krb5_walk_realm_tree(krb5_princ_realm(cred->client),
                                      krb5_princ_realm(cred->server),
-                                     &tgs_list);
+                                     &tgs_list, KRB5_REALM_BRANCH_CHAR);
        if (retval)
            goto out;
        /* walk the list BACKWARDS until we find a cached
@@ -183,12 +183,12 @@ krb5_get_cred_from_kdc (ccache, cred, tgts)
            tgtq.client = tgt.client;
 
            /* ask each realm for a tgt to the end */
-           if (retval = krb5_copy_data((*next_server)[0], &tmpdata)) {
+           if (retval = krb5_copy_data(krb5_princ_realm(*next_server), &tmpdata)) {
                krb5_free_realm_tree(tgs_list);
                goto out;
            }
-           krb5_free_data(final_server[0]);
-           final_server[0] = tmpdata;
+           krb5_free_data(krb5_princ_realm(final_server));
+           krb5_princ_set_realm(final_server, tmpdata);
            tgtq.server = final_server;
 
            tgtq.is_skey = FALSE;