From: Howard Chu Date: Sun, 25 Aug 2002 10:18:01 +0000 (+0000) Subject: Fix ITS#2044 duplicate search results due to broken bdb_idl_union X-Git-Tag: NO_SLAP_OP_BLOCKS~1178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1524f86778d36a1802085452a46144bd9e220004;p=openldap Fix ITS#2044 duplicate search results due to broken bdb_idl_union --- 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;