mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 00:45:01 -05:00
fix ITS#3196; more to do
This commit is contained in:
parent
5ff789e379
commit
eb6dcbe246
1 changed files with 6 additions and 1 deletions
|
|
@ -1102,7 +1102,12 @@ limits_check( Operation *op, SlapReply *rs )
|
|||
}
|
||||
|
||||
if ( pr_total == -1 ) {
|
||||
slimit = -1;
|
||||
if ( op->ors_slimit == 0 || op->ors_slimit == SLAP_MAX_LIMIT ) {
|
||||
slimit = -1;
|
||||
|
||||
} else {
|
||||
slimit = op->ors_slimit - op->o_pagedresults_state.ps_count;
|
||||
}
|
||||
|
||||
} else if ( pr_total > 0 && op->ors_slimit != SLAP_MAX_LIMIT
|
||||
&& ( op->ors_slimit == SLAP_NO_LIMIT || op->ors_slimit > pr_total ) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue