From: John Carr Date: Fri, 21 Aug 1992 02:51:05 +0000 (+0000) Subject: Pass extra argument to krb5_walk_realm_tree. X-Git-Tag: krb5-1.0-beta2~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=019beff1a44b79b32db55de89079633628d0636e;p=krb5.git Pass extra argument to krb5_walk_realm_tree. Principal type changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2343 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gc_frm_kdc.c b/src/lib/krb5/krb/gc_frm_kdc.c index d76918eee..4aa8d9dea 100644 --- a/src/lib/krb5/krb/gc_frm_kdc.c +++ b/src/lib/krb5/krb/gc_frm_kdc.c @@ -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;