ck->op->oq_search.rs_scope == LDAP_SCOPE_ONELEVEL
? LDAP_SCOPE_BASE : LDAP_SCOPE_SUBTREE );
- send_search_reference( ck->op, ck->rs );
+ rc = send_search_reference( ck->op, ck->rs );
ber_bvarray_free( ck->rs->sr_ref );
ber_bvarray_free( erefs );
ck->rs->sr_entry = e;
ck->rs->sr_attrs = ck->op->ors_attrs;
ck->rs->sr_flags = REP_ENTRY_MODIFIABLE;
- send_search_entry(ck->op, ck->rs);
+ rc = send_search_entry(ck->op, ck->rs);
}
fd = 1;
+ if ( rc )
+ goto leave;
} else {
/* Queueing up for tool mode */
if(ck->entries == NULL) {
ConfigArgs c = {0};
ConfigTable *ct;
char *argv[3];
- int rc;
+ int rc = 0;
slap_callback cb = { NULL, config_ldif_resp, NULL, NULL };
Connection conn = {0};
char opbuf[OPERATION_BUFFER_SIZE];
cb.sc_private = cfb;
op->o_bd = &cfb->cb_db;
- op->o_bd->be_search( op, &rs );
+ rc = op->o_bd->be_search( op, &rs );
}
cfb->cb_use_ldif = 1;
- return 0;
+ return rc;
}
static int