]> git.sur5r.net Git - openldap/commitdiff
ITS#7577 more for previous commit
authorHoward Chu <hyc@openldap.org>
Sun, 28 Apr 2013 19:47:14 +0000 (12:47 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 10 May 2013 20:31:22 +0000 (13:31 -0700)
servers/slapd/back-mdb/search.c

index 30e2eeda655b66a2ecdcfc1f9cbf17abcf3de18f..0b2057202bf212abaaba6e9d7fb007ccaa118602 100644 (file)
@@ -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;