From 5dbcdd65e2dc2872b3d72a949225d755d5868f53 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 10 Sep 2013 07:37:53 -0700 Subject: [PATCH] Force 'inline' for REJECT_ACTION Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 7d8c82900..2e3bb54cd 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1749,9 +1749,9 @@ sub process_actions() { while ( read_a_line( NORMAL_READ ) ) { my ( $action, $options ) = split_line 'action file' , { action => 0, options => 1 }; - my $type = ACTION; + my $type = ( $action eq $config{REJECT_ACTION} ? INLINE : ACTION ); my $noinline = 0; - my $nolog = ( $action eq $config{REJECT_ACTION} ) || 0; + my $nolog = ( $type == INLINE ) || 0; my $builtin = 0; if ( $action =~ /:/ ) { @@ -1812,7 +1812,7 @@ sub process_actions() { if ( my $action = $config{REJECT_ACTION} ) { my $type = $targets{$action}; fatal_error "REJECT_ACTION ($action) was not defined" unless $type; - fatal_error "REJECT_ACTION ($action) is not an action" unless $type & (ACTION | INLINE); + fatal_error "REJECT_ACTION ($action) is not an action" unless $type == INLINE; } }