From 4c10fcd503c4aadb6d04738ca4a9111ff4bdb83c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 16 Jun 2012 15:51:20 -0700 Subject: [PATCH] Complain if a RED_NONE option has a value specified. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 7302d2b18..8b8ba23ef 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -1257,6 +1257,7 @@ sub validate_tc_class( ) { fatal_error "The $1 option requires a value" unless $opttype == RED_NONE || $2; fatal_error "The $1 option requires a value 0 < value < 1" if $opttype == RED_FLOAT && ! $3; fatal_error "The $1 option requires an integer value" if $opttype == RED_INTEGER && $3; + fatal_error "The $1 option does not take a value" if $opttype == RED_NONE && $2; $redopts{$1} = $2; } else { fatal_error "Invalid 'red' option specification ($redopt)";