mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Pass LDAP_OPT_<ON/OFF> instead of (void*)flag to ldap_set_option
This commit is contained in:
parent
a8711b282e
commit
f7b4f5e9d7
@ -289,7 +289,8 @@ main( int argc, char **argv )
|
||||
/* set option error */
|
||||
}
|
||||
if (referrals != -1 &&
|
||||
ldap_set_option( ld, LDAP_OPT_REFERRALS, (void *) referrals ) == -1 )
|
||||
ldap_set_option( ld, LDAP_OPT_REFERRALS,
|
||||
(referrals ? LDAP_OPT_ON : LDAP_OPT_OFF) ) == -1 )
|
||||
{
|
||||
/* set option error */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user