summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-03-02 11:56:28 -0500
committerMartin Nagy <mnagy@redhat.com>2009-03-02 18:31:59 +0100
commit89ed252c83d239a53c6c817a8d80d2aeac48e591 (patch)
tree84a14fccedf0612520f08c180e27fc552a778b41
parentdf3f8878f43820f9d801fbfd57298121785500d0 (diff)
downloadldap_driver_testing-89ed252c83d239a53c6c817a8d80d2aeac48e591.tar.gz
ldap_driver_testing-89ed252c83d239a53c6c817a8d80d2aeac48e591.tar.xz
ldap_driver_testing-89ed252c83d239a53c6c817a8d80d2aeac48e591.zip
Compare number of dn-s instead of pointers in dn_to_dnsname.
-rw-r--r--ldap_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap_convert.c b/ldap_convert.c
index 4c41454..1bf9dea 100644
--- a/ldap_convert.c
+++ b/ldap_convert.c
@@ -139,7 +139,7 @@ dn_to_text(const char *dn, const char *root_dn, ld_string_t *target)
CHECK(explode_dn(root_dn, &exploded_root, 1));
count_root = count_rdns(exploded_root);
- if (exploded_root > exploded_dn) {
+ if (count_root > count) {
result = ISC_R_FAILURE;
goto cleanup;
}