From 25c53f5a605855f52340f4c976f4b5c4fad34ddf Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 5 Dec 2012 07:51:21 -0800 Subject: [PATCH] Detect missing target in merge_levels() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index ed08c8546..8f7f3d211 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1129,6 +1129,8 @@ sub merge_levels ($$) { my $target = $subparts[0]; + fatal_error "Missing ACTION" unless supplied $target; + push @subparts, '' while @subparts < 3; #Avoid undefined values my $sublevel = $subparts[1];