mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-28 02:23:20 +01:00
Zero out {frozen} in a deleted chain entry
This commit is contained in:
parent
c5bb3ecfac
commit
6106dd3ada
@ -624,7 +624,7 @@ sub insert_rule1($$$)
|
|||||||
$chainref->{frozen}++;
|
$chainref->{frozen}++;
|
||||||
$number = 0;
|
$number = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
splice( @{$chainref->{rules}}, $number, 0, $rule );
|
splice( @{$chainref->{rules}}, $number, 0, $rule );
|
||||||
|
|
||||||
trace( $chainref, 'I', ++$number, $rule ) if $debug;
|
trace( $chainref, 'I', ++$number, $rule ) if $debug;
|
||||||
@ -642,12 +642,13 @@ sub insert_rule($$$) {
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Do final work to 'delete' a chain. We leave it in the chain table but clear
|
# Do final work to 'delete' a chain. We leave it in the chain table but clear
|
||||||
# the 'referenced', 'rules' and 'references' members.
|
# the 'referenced', 'rules', 'references' and 'frozen' members.
|
||||||
#
|
#
|
||||||
sub delete_chain( $ ) {
|
sub delete_chain( $ ) {
|
||||||
my $chainref = shift;
|
my $chainref = shift;
|
||||||
|
|
||||||
$chainref->{referenced} = 0;
|
$chainref->{referenced} = 0;
|
||||||
|
$chainref->{frozen} = 0;
|
||||||
$chainref->{rules} = [];
|
$chainref->{rules} = [];
|
||||||
$chainref->{references} = {};
|
$chainref->{references} = {};
|
||||||
trace( $chainref, 'X', undef, '' ) if $debug;
|
trace( $chainref, 'X', undef, '' ) if $debug;
|
||||||
|
Loading…
Reference in New Issue
Block a user