mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 08:23:35 -05:00
Pass LDAP_OPT_<ON/OFF> instead of (void*)flag to ldap_set_option
This commit is contained in:
parent
a8711b282e
commit
f7b4f5e9d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue