mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#9557 back-mdb: fix mdb_waitfixup for candidate-based searches
Off-by-one left last scope unrefreshed
This commit is contained in:
parent
21d48622c7
commit
3ca790514f
@ -406,7 +406,7 @@ mdb_waitfixup( Operation *op, ww_ctx *ww, MDB_cursor *mci, MDB_cursor *mcd, IdSc
|
||||
ww->data.mv_data = NULL;
|
||||
} else if ( isc->scopes[0].mid > 1 ) { /* candidate-based search */
|
||||
int i;
|
||||
for ( i=1; i<isc->scopes[0].mid; i++ ) {
|
||||
for ( i=1; i<=isc->scopes[0].mid; i++ ) {
|
||||
if ( !isc->scopes[i].mval.mv_data )
|
||||
continue;
|
||||
key.mv_data = &isc->scopes[i].mid;
|
||||
|
Loading…
Reference in New Issue
Block a user