From a3968beb7e6ba35d358a8ef434a17610ce4345f8 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 7 Jun 2011 12:50:24 -0700 Subject: [PATCH] Add fix inadvertently dropped from 4.4.19.4 Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index e09fa6f08..a6f76823f 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -1309,6 +1309,13 @@ sub process_tc_priority() { return; } + fatal_error "Invalid tcpri entry" if ( $proto eq '-' && + $ports eq '-' && + $address eq '-' && + $interface eq '-' && + $helper eq '-' ); + + my $val = numeric_value $band; fatal_error "Invalid PRIORITY ($band)" unless $val && $val <= 3;