mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
Fix LDAP_DNS code to use LDAP_BOOL_GET
This commit is contained in:
parent
ba8131d5be
commit
435a502cbc
1 changed files with 3 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue