This commit is contained in:
Pierangelo Masarati 2006-04-13 14:46:16 +00:00
parent ec849bd981
commit a2a9298080
2 changed files with 4 additions and 2 deletions

View file

@ -477,7 +477,8 @@ slap_discover_feature(
return rc;
}
rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );
rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
(const void *)&version );
if ( rc != LDAP_SUCCESS ) {
goto done;
}

View file

@ -436,7 +436,8 @@ do_syncrep1(
}
op->o_protocol = LDAP_VERSION3;
ldap_set_option( si->si_ld, LDAP_OPT_PROTOCOL_VERSION, &op->o_protocol );
ldap_set_option( si->si_ld, LDAP_OPT_PROTOCOL_VERSION,
(const void *)&op->o_protocol );
#ifdef HAVE_TLS
if ( si->si_check_tls ) {