From 29731c185041444166a963699d6a44bac7f8a3d7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 27 Aug 2005 10:15:22 +0000 Subject: [PATCH] Partially revert rev 1.31, must detect send_search errors to propagate errors up when reading config DB. --- servers/slapd/back-ldif/ldif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 61b8f2d012..e6dd8a78f9 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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; -- 2.39.5