From e69f22725f56fe5ea4b3b6f73ae09a0657543e40 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;