From: Howard Chu Date: Tue, 27 Nov 2012 22:16:21 +0000 (-0800) Subject: ITS#7451 fix back-ldif return on empty dir X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1ccebcf8831a363ac95302dd1d50c47c6a42595;p=openldap ITS#7451 fix back-ldif return on empty dir Broken by commit 2d1af3f2f7e32eca5ff77e7e018e88d690ba5e79 --- diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index e7c76108d9..e07948e212 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -1780,7 +1780,7 @@ ldif_tool_entry_first_x( BackendDB *be, struct berval *base, int scope, Filter * op.ors_scope = LDAP_SCOPE_SUBTREE; if ( search_tree( &op, NULL ) != LDAP_SUCCESS ) { tl->ecurrent = tl->ecount; /* fail ldif_tool_entry_next() */ - return 0; /* fail ldif_tool_entry_get() */ + return NOID; /* fail ldif_tool_entry_get() */ } } return ldif_tool_entry_next( be );