Only apply log level to bare LOG rules in default-action macro.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-11-25 10:17:03 -08:00
parent fb3194d96b
commit 5acf0f60e7

View File

@ -1656,7 +1656,11 @@ sub process_macro ($$$$$$$$$$$$$$$$$$$) {
next;
}
unless ( $section eq 'DEFAULTACTION' ) {
$mtarget = merge_levels $target, $mtarget;
} else {
$mtarget = merge_levels( $target, $mtarget ) if $mtarget eq 'LOG';
}
if ( $mtarget =~ /^PARAM(:.*)?$/ ) {
fatal_error 'PARAM requires a parameter to be supplied in macro invocation' unless $param ne '';