mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
protocol only allows positive integers; check, just in case...
This commit is contained in:
parent
49d64acdf6
commit
c06208527c
@ -98,6 +98,16 @@ do_search(
|
|||||||
goto return_results;
|
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 ) {
|
switch( op->ors_scope ) {
|
||||||
case LDAP_SCOPE_BASE:
|
case LDAP_SCOPE_BASE:
|
||||||
case LDAP_SCOPE_ONELEVEL:
|
case LDAP_SCOPE_ONELEVEL:
|
||||||
|
Loading…
Reference in New Issue
Block a user