From e1ccebcf8831a363ac95302dd1d50c47c6a42595 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 27 Nov 2012 14:16:21 -0800 Subject: [PATCH] ITS#7451 fix back-ldif return on empty dir Broken by commit 2d1af3f2f7e32eca5ff77e7e018e88d690ba5e79 --- servers/slapd/back-ldif/ldif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5