Skip to content
Snippets Groups Projects
Commit f7b4f5e9 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent a8711b28
Branches
Tags
No related merge requests found
......@@ -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 */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment