mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-21 23:23:13 +01:00
Correct bounds check in do_dscp()
- "< 0x2f" s/b "< 0x3f" Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
1139e1a09c
commit
58ef8e0ec3
@ -5056,7 +5056,7 @@ sub do_dscp( $ ) {
|
||||
|
||||
$value = $dscpmap{$dscp} unless defined $value;
|
||||
|
||||
fatal_error( "Invalid DSCP ($dscp)" ) unless defined $value && $value < 0x2f && ! ( $value & 1 );
|
||||
fatal_error( "Invalid DSCP ($dscp)" ) unless defined $value && $value < 0x3f && ! ( $value & 1 );
|
||||
|
||||
"-m dscp ${invert}--dscp $value ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user