From 1524f86778d36a1802085452a46144bd9e220004 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 25 Aug 2002 10:18:01 +0000 Subject: [PATCH] Fix ITS#2044 duplicate search results due to broken bdb_idl_union --- servers/slapd/back-bdb/idl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 28c9a725e6..99f6963a05 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -1053,7 +1053,7 @@ over: ida = IDL_MIN( BDB_IDL_FIRST(a), BDB_IDL_FIRST(b) ); idb = NOID; else idb = b[cursorc]; - if (b[cursorb] < idb) + if (cursorb <= b[0] && b[cursorb] < idb) a[cursora++] = b[cursorb++]; else { a[cursora++] = idb; -- 2.39.5