Correct bounds check in do_dscp()

- "< 0x2f" s/b "< 0x3f"

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-31 07:07:21 -07:00
parent 1139e1a09c
commit 58ef8e0ec3

View File

@ -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 ";
}