diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 2f4095028..d01eaba90 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -1128,8 +1128,8 @@ sub cleanup() { for ( my $i = @openstack - 1; $i >= 0; $i-- ) { my $istack = $openstack[$i]; for ( my $j = ( @$istack - 1 ); $j >= 0; $j-- ) { - my $info = $istack->[$j]; - close $info->[0]; + my $info = $istack->[$j][0]; + close $info if $info; } } } diff --git a/Shorewall/Perl/lib.core b/Shorewall/Perl/lib.core index 923806a87..f92172cce 100644 --- a/Shorewall/Perl/lib.core +++ b/Shorewall/Perl/lib.core @@ -1324,4 +1324,4 @@ clear_firewall() { logger -p kern.info "$g_product Cleared" } -?endif +?endif # IPv6-specific functions.