Commit 6d7b27fc authored by Howard Chu's avatar Howard Chu
Browse files

Propagate config errors back to caller.

parent e3840aa8
......@@ -349,7 +349,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path,
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 );
......@@ -360,9 +360,11 @@ static int r_enum_tree(enumCookie *ck, struct berval *path,
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) {
......
......@@ -2408,7 +2408,7 @@ config_setup_ldif( BackendDB *be, const char *dir, int readit ) {
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];
......@@ -2488,12 +2488,12 @@ config_setup_ldif( BackendDB *be, const char *dir, int readit ) {
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment