Add fix inadvertently dropped from 4.4.19.4

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-06-07 12:50:24 -07:00
parent 0e839f3d7b
commit a3968beb7e

View File

@ -1309,6 +1309,13 @@ sub process_tc_priority() {
return; return;
} }
fatal_error "Invalid tcpri entry" if ( $proto eq '-' &&
$ports eq '-' &&
$address eq '-' &&
$interface eq '-' &&
$helper eq '-' );
my $val = numeric_value $band; my $val = numeric_value $band;
fatal_error "Invalid PRIORITY ($band)" unless $val && $val <= 3; fatal_error "Invalid PRIORITY ($band)" unless $val && $val <= 3;