]> git.sur5r.net Git - openldap/commitdiff
Partially revert rev 1.31, must detect send_search errors to propagate
authorHoward Chu <hyc@openldap.org>
Sat, 27 Aug 2005 10:15:22 +0000 (10:15 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 27 Aug 2005 10:15:22 +0000 (10:15 +0000)
errors up when reading config DB.

servers/slapd/back-ldif/ldif.c

index 61b8f2d0123a42c4686279b7c3ae44c1a1963b10..e6dd8a78f90ee10ddf004983b9af2968269d0c02 100644 (file)
@@ -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;
                                                        ? 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;
                                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;
                                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;
                                ck->rs->sr_entry = NULL;
                        }
                        fd = 1;