gotit = 0,
isroot = 0;
- SlapReply *candidates = meta_back_candidates_get( op );
+ SlapReply *candidates;
rs->sr_err = LDAP_SUCCESS;
return rs->sr_err;
}
+ candidates = meta_back_candidates_get( op );
+
/*
* Each target is scanned ...
*/
">>> %s meta_back_bind_op_result[%d]\n",
op->o_log_prefix, candidate, 0 );
+ /* make sure this is clean */
+ assert( rs->sr_ctrls == NULL );
+
if ( rs->sr_err == LDAP_SUCCESS ) {
time_t stoptime = (time_t)(-1),
timeout;
i,
isroot = 0;
- SlapReply *candidates = meta_back_candidates_get( op );
+ SlapReply *candidates;
if ( be_isroot( op ) ) {
isroot = 1;
goto done;
}
+ candidates = meta_back_candidates_get( op );
+
for ( i = 0; i < mi->mi_ntargets; i++ ) {
metatarget_t *mt = mi->mi_targets[ i ];
metasingleconn_t *msc = &mc->mc_conns[ i ];
dncookie dc;
int is_ok = 0;
void *savepriv;
- SlapReply *candidates = meta_back_candidates_get( op );
+ SlapReply *candidates = NULL;
/*
* controls are set in ldap_back_dobind()
dc.conn = op->o_conn;
dc.rs = rs;
+ if ( candidates == NULL ) candidates = meta_back_candidates_get( op );
/*
* Inits searches
*/