forked from extern/shorewall_code
Avoid a fatal Perl error in Config::cleanup when an fatal error occurs
while compiling a default action. Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
38097bef5d
commit
b53fd39b49
@ -1128,8 +1128,8 @@ sub cleanup() {
|
|||||||
for ( my $i = @openstack - 1; $i >= 0; $i-- ) {
|
for ( my $i = @openstack - 1; $i >= 0; $i-- ) {
|
||||||
my $istack = $openstack[$i];
|
my $istack = $openstack[$i];
|
||||||
for ( my $j = ( @$istack - 1 ); $j >= 0; $j-- ) {
|
for ( my $j = ( @$istack - 1 ); $j >= 0; $j-- ) {
|
||||||
my $info = $istack->[$j];
|
my $info = $istack->[$j][0];
|
||||||
close $info->[0];
|
close $info if $info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1324,4 +1324,4 @@ clear_firewall() {
|
|||||||
logger -p kern.info "$g_product Cleared"
|
logger -p kern.info "$g_product Cleared"
|
||||||
}
|
}
|
||||||
|
|
||||||
?endif
|
?endif # IPv6-specific functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user