diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 77ee590e5881431f6f58dd6df3eb12e832f40cdc..e6dd8a78f90ee10ddf004983b9af2968269d0c02 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,12 +341,12 @@ 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; if ( rc ) - goto leave; + goto done; } else { /* Queueing up for tool mode */ if(ck->entries == NULL) { @@ -382,7 +382,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path, "=> ldif_enum_tree: failed to opendir %s (%d)\n", path->bv_val, errno, 0 ); } - goto leave; + goto done; } while(1) { @@ -453,7 +453,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path, free(ptr); } } -leave: +done: if ( fd ) entry_free( e ); return rc; }