From: Howard Chu Date: Sun, 28 Apr 2013 19:47:14 +0000 (-0700) Subject: ITS#7577 more for previous commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=201ddbe3e4d8eb39830b96eefa559900952bc022;p=openldap ITS#7577 more for previous commit --- diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index 30e2eeda65..0b2057202b 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -649,8 +649,10 @@ dn2entry_retry: continue; iscopes[cursor++] = scopes[cscope].mid; } + iscopes[0] = scopes[0].mid - 1; + } else { + iscopes[0] = 0; } - iscopes[0] = scopes[0].mid - 1; isc.id = base->e_id; isc.numrdns = 0;