mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Partially revert rev 1.31, must detect send_search errors to propagate
errors up when reading config DB.
This commit is contained in:
parent
a5739b28b3
commit
29731c1850
@ -330,7 +330,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path,
|
||||
? LDAP_SCOPE_BASE : LDAP_SCOPE_SUBTREE );
|
||||
|
||||
ck->rs->sr_entry = e;
|
||||
rc = send_search_reference( ck->op, ck->rs ) < 0;
|
||||
rc = send_search_reference( ck->op, ck->rs );
|
||||
ber_bvarray_free( ck->rs->sr_ref );
|
||||
ber_bvarray_free( erefs );
|
||||
ck->rs->sr_ref = NULL;
|
||||
@ -341,7 +341,7 @@ 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;
|
||||
rc = send_search_entry(ck->op, ck->rs) < 0;
|
||||
rc = send_search_entry(ck->op, ck->rs);
|
||||
ck->rs->sr_entry = NULL;
|
||||
}
|
||||
fd = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user