]> git.sur5r.net Git - openldap/commitdiff
ITS#7975 fix onelevel search
authorHoward Chu <hyc@openldap.org>
Wed, 29 Oct 2014 18:05:00 +0000 (18:05 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 29 Oct 2014 18:05:00 +0000 (18:05 +0000)
servers/slapd/back-mdb/search.c

index 98b5f2557f20895337e8f407c5698097505a3feb..9089016ba647d7510d951fb659dd330da559724a 100644 (file)
@@ -837,6 +837,7 @@ loop_begin:
                        }
                        /* Fall-thru */
                case LDAP_SCOPE_ONELEVEL:
+                       if ( id == base->e_id ) break;
                        isc.id = id;
                        isc.nscope = 0;
                        rs->sr_err = mdb_idscopes( op, &isc );