diff options
author | Theodore Tso <tytso@mit.edu> | 1994-12-01 01:37:13 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1994-12-01 01:37:13 +0000 |
commit | a0859d051b681be050425a7324f0fb96ca1d9c62 (patch) | |
tree | cfb350ad4ef64d4e7dcc87b718d7911cbbd8d6f4 /src/lib/krb5/krb/walk_rtree.c | |
parent | c51e9a64663a3a9f3f63e0d108316ecbdc94cb08 (diff) | |
download | krb5-a0859d051b681be050425a7324f0fb96ca1d9c62.tar.gz krb5-a0859d051b681be050425a7324f0fb96ca1d9c62.tar.xz krb5-a0859d051b681be050425a7324f0fb96ca1d9c62.zip |
Makefile.in: Build the new test driver (t_walk_rtree.c) for
krb5_walk_realm_tree.
walk_realm_tree.c (krb5_walk_realm_tree): Fix bug which occured when
the client or the server is a subdomain of the other; walk_realm_tree
would return the wrong answer, and suffer from memory access errors.
unparse.c (krb5_unparse_name_ext): Quote the '/' and '@' characters properly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4724 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/walk_rtree.c')
-rw-r--r-- | src/lib/krb5/krb/walk_rtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c index 4ff94b9933..0890f94d8d 100644 --- a/src/lib/krb5/krb/walk_rtree.c +++ b/src/lib/krb5/krb/walk_rtree.c @@ -84,6 +84,7 @@ char realm_branch_char; /* one is a subdomain of the other */ com_cdot = client->data; com_sdot = scp; + nocommon = 0; } /* else normal case of two sharing parents */ } if (!slen) { @@ -92,6 +93,7 @@ char realm_branch_char; /* one is a subdomain of the other */ com_sdot = server->data; com_cdot = ccp; + nocommon = 0; } /* else normal case of two sharing parents */ } /* determine #links to/from common ancestor */ |