From: Howard Chu Date: Tue, 19 May 2015 20:21:54 +0000 (+0100) Subject: ITS#8146 fix off-by-1 in prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f119767f7e4e632c0da5ba4ab4f2693a71281aa;p=openldap ITS#8146 fix off-by-1 in prev commit --- diff --git a/servers/slapd/back-mdb/filterindex.c b/servers/slapd/back-mdb/filterindex.c index 162dba9ae2..c295f583a5 100644 --- a/servers/slapd/back-mdb/filterindex.c +++ b/servers/slapd/back-mdb/filterindex.c @@ -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;