From: bert hubert Date: Thu, 5 Nov 2015 13:40:51 +0000 (+0100) Subject: make LDAP backend compile again. Note: it may have been broken already. It uses the... X-Git-Tag: dnsdist-1.0.0-alpha1~239^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5b05441215b9e08b3beaafd07c382a8c29c22e1;p=pdns make LDAP backend compile again. Note: it may have been broken already. It uses the length of a domain name for AXFR in-zone-detection purposes, which should probably be DNSName native anyhow. --- diff --git a/modules/ldapbackend/ldapbackend.cc b/modules/ldapbackend/ldapbackend.cc index 9032d5e6c..8e01a5ff1 100644 --- a/modules/ldapbackend/ldapbackend.cc +++ b/modules/ldapbackend/ldapbackend.cc @@ -93,7 +93,7 @@ bool LdapBackend::list( const DNSName& target, int domain_id, bool include_disab try { m_qname = target; - m_axfrqlen = target.length(); + m_axfrqlen = target.toStringNoDot().length(); m_adomain = m_adomains.end(); // skip loops in get() first time return (this->*m_list_fcnt)( target, domain_id );