]> git.sur5r.net Git - openldap/commitdiff
ITS#8146 fix off-by-1 in prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 19 May 2015 20:21:54 +0000 (21:21 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 19 May 2015 20:21:54 +0000 (21:21 +0100)
servers/slapd/back-mdb/filterindex.c

index 162dba9ae2ea81614c57c0222ad078c3ebe655e0..c295f583a54b857cb29e1ea9bbddf38559821480 100644 (file)
@@ -216,7 +216,7 @@ mdb_filter_candidates(
                ID last;
 
                if ( mdb->mi_nextid ) {
-                       last = mdb->mi_nextid - 1;
+                       last = mdb->mi_nextid;
                } else {
                        MDB_cursor *mc;
                        MDB_val key;