mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix ITS#3196; more to do
This commit is contained in:
parent
5ff789e379
commit
eb6dcbe246
@ -1102,8 +1102,13 @@ limits_check( Operation *op, SlapReply *rs )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( pr_total == -1 ) {
|
if ( pr_total == -1 ) {
|
||||||
|
if ( op->ors_slimit == 0 || op->ors_slimit == SLAP_MAX_LIMIT ) {
|
||||||
slimit = -1;
|
slimit = -1;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
slimit = op->ors_slimit - op->o_pagedresults_state.ps_count;
|
||||||
|
}
|
||||||
|
|
||||||
} else if ( pr_total > 0 && op->ors_slimit != SLAP_MAX_LIMIT
|
} else if ( pr_total > 0 && op->ors_slimit != SLAP_MAX_LIMIT
|
||||||
&& ( op->ors_slimit == SLAP_NO_LIMIT || op->ors_slimit > pr_total ) )
|
&& ( op->ors_slimit == SLAP_NO_LIMIT || op->ors_slimit > pr_total ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user