Pass LDAP_OPT_<ON/OFF> instead of (void*)flag to ldap_set_option

This commit is contained in:
Hallvard Furuseth 1999-03-09 07:19:18 +00:00
parent a8711b282e
commit f7b4f5e9d7

View File

@ -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 */
}