mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix ITS#3196; more to do
This commit is contained in:
parent
5ff789e379
commit
eb6dcbe246
@ -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 New Issue
Block a user