mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
make sure appropriate limits are in place (ITS#4336)
This commit is contained in:
parent
4c39d2c5a0
commit
7124ec615e
1 changed files with 10 additions and 1 deletions
|
|
@ -748,7 +748,16 @@ cleanup:;
|
|||
}
|
||||
|
||||
} else {
|
||||
rc = ldap_chain_op( op, rs, lback->bi_op_search, ref );
|
||||
/* we might get here before any database actually
|
||||
* performed a search; in those cases, we need
|
||||
* to check limits, to make sure safe defaults
|
||||
* are in place */
|
||||
if ( op->ors_limit != NULL || limits_check( op, rs ) == 0 ) {
|
||||
rc = ldap_chain_op( op, rs, lback->bi_op_search, ref );
|
||||
|
||||
} else {
|
||||
rc = SLAP_CB_CONTINUE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue