fix size limit count (ITS#4181)

This commit is contained in:
Pierangelo Masarati 2005-11-17 18:55:47 +00:00
parent 640f33a267
commit b2c4a3be6a

View File

@ -2305,6 +2305,11 @@ backsql_search( Operation *op, SlapReply *rs )
if ( test_filter( op, e, op->ors_filter ) == LDAP_COMPARE_TRUE )
{
if ( --op->ors_slimit == -1 ) {
rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
goto send_results;
}
rs->sr_attrs = op->ors_attrs;
rs->sr_operational_attrs = NULL;
rs->sr_entry = e;
@ -2334,10 +2339,6 @@ next_entry:;
}
next_entry2:;
if ( --op->ors_slimit == -1 ) {
rs->sr_err = LDAP_SIZELIMIT_EXCEEDED;
goto send_results;
}
}
end_of_search:;