From: Howard Chu Date: Wed, 29 Oct 2014 18:05:00 +0000 (+0000) Subject: ITS#7975 fix onelevel search X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6e073d31e89089a731870799b43de797480306d;p=openldap ITS#7975 fix onelevel search --- diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index 98b5f2557f..9089016ba6 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -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 );