]> git.sur5r.net Git - openldap/commitdiff
ITS#7451 fix back-ldif return on empty dir
authorHoward Chu <hyc@openldap.org>
Tue, 27 Nov 2012 22:16:21 +0000 (14:16 -0800)
committerHoward Chu <hyc@openldap.org>
Tue, 27 Nov 2012 22:16:21 +0000 (14:16 -0800)
Broken by commit 2d1af3f2f7e32eca5ff77e7e018e88d690ba5e79

servers/slapd/back-ldif/ldif.c

index e7c76108d97d689e6a3896823ba65ce389967dfd..e07948e212e7bd1a2113ffc748b2493267d6aff7 100644 (file)
@@ -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 );