mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
fix size limit count (ITS#4181)
This commit is contained in:
parent
640f33a267
commit
b2c4a3be6a
1 changed files with 5 additions and 4 deletions
|
|
@ -2305,6 +2305,11 @@ backsql_search( Operation *op, SlapReply *rs )
|
|||
|
||||
if ( test_filter( op, e, op->ors_filter ) == LDAP_COMPARE_TRUE )
|
||||
{
|
||||
if ( --op->ors_slimit == -1 ) {
|
||||
rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
|
||||
goto send_results;
|
||||
}
|
||||
|
||||
rs->sr_attrs = op->ors_attrs;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
rs->sr_entry = e;
|
||||
|
|
@ -2334,10 +2339,6 @@ next_entry:;
|
|||
}
|
||||
|
||||
next_entry2:;
|
||||
if ( --op->ors_slimit == -1 ) {
|
||||
rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
|
||||
goto send_results;
|
||||
}
|
||||
}
|
||||
|
||||
end_of_search:;
|
||||
|
|
|
|||
Loading…
Reference in a new issue