]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2044 duplicate search results due to broken bdb_idl_union
authorHoward Chu <hyc@openldap.org>
Sun, 25 Aug 2002 10:18:01 +0000 (10:18 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Aug 2002 10:18:01 +0000 (10:18 +0000)
servers/slapd/back-bdb/idl.c

index 28c9a725e6e499beb5333a4e55d5bc5005358275..99f6963a054f06dc4f3e0d867d607de5113ff769 100644 (file)
@@ -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;