From 5ef9978afe54a47b6a193abfbbed34200f621bbe Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 13 Apr 2005 19:05:56 +0000 Subject: [PATCH] ITS#3616 don't index the dummy context entry --- servers/slapd/back-bdb/index.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.5