fix ITS#3196; more to do

This commit is contained in:
Pierangelo Masarati 2004-06-21 17:51:28 +00:00
parent 5ff789e379
commit eb6dcbe246

View File

@ -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 ) )