From 89ed252c83d239a53c6c817a8d80d2aeac48e591 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 2 Mar 2009 11:56:28 -0500 Subject: Compare number of dn-s instead of pointers in dn_to_dnsname. --- ldap_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldap_convert.c') 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; } -- cgit