Correct parsing of the POLICY column

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-02-06 14:15:24 -08:00
parent 3b82721956
commit b9471a2499
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -571,7 +571,7 @@ sub process_default_actions( $$$ ) {
if ( supplied $defaults ) {
if ( $defaults ne 'none' ) {
for my $default ( split_list3( $defaults, 'Default Action' ) ) {
my ( $action, $level, undef, $remainder ) = split( /:/, $default, ACTION_TUPLE_ELEMENTS - 1);
my ( $action, $level, $remainder ) = split( /:/, $default );
fatal_error "Invalid default action ($default:$level:$remainder)" if defined $remainder;