diff --git a/Shorewall/action.Established b/Shorewall/action.Established index 58365aaef..e8c3489db 100644 --- a/Shorewall/action.Established +++ b/Shorewall/action.Established @@ -36,10 +36,11 @@ DEFAULTS ACCEPT use Shorewall::IPAddrs; use Shorewall::Config; use Shorewall::Chains; +use Shorewall::Rules; my ( $action ) = get_action_params( 1 ); -if ( my $state = check_state( 'ESTABLISHED' ) ) { +if ( my $check = check_state( 'ESTABLISHED' ) ) { perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} ESTABLISHED" : '' ); } diff --git a/Shorewall/action.New b/Shorewall/action.New index eb2e81b0c..898bf4c3a 100644 --- a/Shorewall/action.New +++ b/Shorewall/action.New @@ -36,6 +36,7 @@ DEFAULTS ACCEPT use Shorewall::IPAddrs; use Shorewall::Config; use Shorewall::Chains; +use Shorewall::Rules; my ( $action ) = get_action_params( 1 ); diff --git a/Shorewall/action.Related b/Shorewall/action.Related index ad8850ae0..cb76de209 100644 --- a/Shorewall/action.Related +++ b/Shorewall/action.Related @@ -37,10 +37,11 @@ use strict; use Shorewall::IPAddrs; use Shorewall::Config; use Shorewall::Chains; +use Shorewall::Rules; my ( $action ) = get_action_params( 1 ); -if ( my $state = check_state( 'RELATED' ) ) { +if ( my $check = check_state( 'RELATED' ) ) { perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} RELATED" : '' ); } diff --git a/Shorewall/action.Untracked b/Shorewall/action.Untracked index 2a6e1e2c3..0bcb9abf7 100644 --- a/Shorewall/action.Untracked +++ b/Shorewall/action.Untracked @@ -36,7 +36,7 @@ DEFAULTS DROP,- use Shorewall::IPAddrs; use Shorewall::Config; use Shorewall::Chains; -use Shorewall::Rules qw( process_rule1 ); +use Shorewall::Rules; my ( $action ) = get_action_params( 1 );