Commit eb6dcbe2 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix ITS#3196; more to do

parent 5ff789e3
...@@ -1102,7 +1102,12 @@ limits_check( Operation *op, SlapReply *rs ) ...@@ -1102,7 +1102,12 @@ limits_check( Operation *op, SlapReply *rs )
} }
if ( pr_total == -1 ) { 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 } 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 ) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment