From: Kurt Zeilenga Date: Sun, 8 Nov 1998 01:11:09 +0000 (+0000) Subject: Fix LDAP_DNS code to use LDAP_BOOL_GET X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1164 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=435a502cbc74a70886eed91ae3f062f671f14c68;p=openldap Fix LDAP_DNS code to use LDAP_BOOL_GET --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 4732c639f3..de6ed9492f 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -91,7 +91,9 @@ ldap_send_initial_request( LDAP *ld, unsigned long msgtype, char *dn, #else /* !LDAP_REFERRALS && !LDAP_DNS */ #ifdef LDAP_DNS - if (( ld->ld_options & LDAP_OPT_DNS ) != 0 && ldap_is_dns_dn( dn )) { + if (( LDAP_BOOL_GET(ld, LDAP_BOOL_DNS ) == LDAP_OPT_ON ) + && ldap_is_dns_dn( dn ) ) + { if (( servers = dn2servers( ld, dn )) == NULL ) { ber_free( ber, 1 ); return( -1 );