mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-28 17:18:49 +01:00
Adjust reference count in move rules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
ce9b5ee944
commit
c0382b8cb9
@ -762,7 +762,19 @@ sub copy_rules( $$ ) {
|
||||
my $last = pop @$rules2; # Delete the jump to chain1
|
||||
|
||||
if ( $blacklist2 && $blacklist1 ) {
|
||||
shift @rules1;
|
||||
#
|
||||
# Chains2 already has a blacklist jump -- delete the one at the head of chain1's rule list
|
||||
#
|
||||
my $rule = shift @rules1;
|
||||
|
||||
$rule =~ / -j ([^\s])/;
|
||||
|
||||
my $chainb = $1;
|
||||
|
||||
assert( $chainb =~ /^black/ );
|
||||
|
||||
delete $tableref->{$chainb}{references}{$name1} unless --$tableref->{$chainb}{references}{$name1} > 0;
|
||||
|
||||
assert( ! --$chain1->{blacklist} );
|
||||
$blacklist1 = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user