From: Howard Chu Date: Wed, 13 Apr 2005 19:05:56 +0000 (+0000) Subject: ITS#3616 don't index the dummy context entry X-Git-Tag: OPENLDAP_AC_BP~896 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ef9978afe54a47b6a193abfbbed34200f621bbe;p=openldap ITS#3616 don't index the dummy context entry --- diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index 4db3c6794a..1dd494c375 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -340,6 +340,10 @@ int bdb_index_values( { int rc; + /* Never index ID 0 */ + if ( id == 0 ) + return 0; + rc = index_at_values( op, txn, desc, desc->ad_type, &desc->ad_tags, vals, id, opid );