mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 17:03:09 -05:00
protocol only allows positive integers; check, just in case...
This commit is contained in:
parent
49d64acdf6
commit
c06208527c
1 changed files with 10 additions and 0 deletions
|
|
@ -98,6 +98,16 @@ do_search(
|
|||
goto return_results;
|
||||
}
|
||||
|
||||
if ( op->ors_tlimit < 0 || op->ors_tlimit > SLAP_MAX_LIMIT ) {
|
||||
send_ldap_error( op, rs, LDAP_PROTOCOL_ERROR, "invalid time limit" );
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
if ( op->ors_slimit < 0 || op->ors_slimit > SLAP_MAX_LIMIT ) {
|
||||
send_ldap_error( op, rs, LDAP_PROTOCOL_ERROR, "invalid size limit" );
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
switch( op->ors_scope ) {
|
||||
case LDAP_SCOPE_BASE:
|
||||
case LDAP_SCOPE_ONELEVEL:
|
||||
|
|
|
|||
Loading…
Reference in a new issue