Connection *conn,
Operation *op,
struct metatarget *lt,
- int vers,
struct metasingleconn *lsc
)
{
- int err;
+ int err, vers;
/*
* Already init'ed
if ( err != LDAP_SUCCESS ) {
return ldap_back_map_result( err );
}
-
+
/*
* Set LDAP version. This will always succeed: If the client
* bound with a particular version, then so can we.
*/
+ vers = conn->c_protocol;
ldap_set_option( lsc->ld, LDAP_OPT_PROTOCOL_VERSION, &vers );
/*
int *candidate )
{
struct metaconn *lc, lc_curr;
- int vers, cached = -1, i = -1, err = LDAP_SUCCESS;
+ int cached = -1, i = -1, err = LDAP_SUCCESS;
int new_conn = 0;
/* Searches for a metaconn in the avl tree */
new_conn = 1;
}
- vers = conn->c_protocol;
-
/*
* looks in cache, if any
*/
* sends the appropriate result.
*/
err = init_one_conn( conn, op, li->targets[ i ],
- vers, &lc->conns[ i ] );
+ &lc->conns[ i ] );
if ( err != LDAP_SUCCESS ) {
/*
* also init'd
*/
int lerr = init_one_conn( conn, op, li->targets[ i ],
- vers, &lc->conns[ i ] );
+ &lc->conns[ i ] );
if ( lerr != LDAP_SUCCESS ) {
/*
*/
int lerr = init_one_conn( conn, op,
li->targets[ i ],
- vers, &lc->conns[ i ] );
+ &lc->conns[ i ] );
if ( lerr != LDAP_SUCCESS ) {
/*