diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 8c5afb0e3..2876b9d2c 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -980,13 +980,7 @@ sub process_mark_rule( $$$$$$$$$$$$$$$$ ) { } } - my ( $command, $designator ) = split_action( $action ); - - if ( supplied $designator ) { - fatal_error "Invalid chain designator ( $designator )" unless $designators{$designator}; - } - - ( $command , $params ) = get_target_param1( $command ); + my ( $command, $designator ); my %commands = ( CHECKSUM => { @@ -1297,6 +1291,16 @@ sub process_mark_rule( $$$$$$$$$$$$$$$$ ) { }, ); + # + # Function Body + # + ( $command, $designator ) = split_action( $action ); + + if ( supplied $designator ) { + fatal_error "Invalid chain designator ( $designator )" unless $designators{$designator}; + } + + ( $command , $params ) = get_target_param1( $command ); my $commandref = $commands{$command};