mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#4226 must close cursor when limiting candidate check
This commit is contained in:
parent
b2e673c37a
commit
dcaa6aa830
@ -1066,8 +1066,10 @@ inequality_candidates(
|
||||
bdb_idl_union( ids, tmp );
|
||||
|
||||
if( op->ors_limit && op->ors_limit->lms_s_unchecked != -1 &&
|
||||
BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked )
|
||||
BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked ) {
|
||||
cursor->c_close( cursor );
|
||||
break;
|
||||
}
|
||||
}
|
||||
ber_bvarray_free_x( keys, op->o_tmpmemctx );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user