mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#4226 must close cursor when limiting candidate check
This commit is contained in:
parent
b2e673c37a
commit
dcaa6aa830
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue