Detect missing target in merge_levels()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-12-05 07:51:21 -08:00
parent 60012d1208
commit 4ec47783f1

View File

@ -1128,6 +1128,8 @@ sub merge_levels ($$) {
my $target = $subparts[0]; my $target = $subparts[0];
fatal_error "Missing ACTION" unless supplied $target;
push @subparts, '' while @subparts < 3; #Avoid undefined values push @subparts, '' while @subparts < 3; #Avoid undefined values
my $sublevel = $subparts[1]; my $sublevel = $subparts[1];