Delete 'sfilter' chain if it isn't referenced

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-05-27 19:56:54 -07:00
parent 1a2c9a08e1
commit a37dbf76dc

View File

@ -530,6 +530,11 @@ sub add_common_rules() {
}
}
#
# Delete 'sfilter' chain unless there are referenced to it
#
$chainref->{referenced} = 0 unless @{($chainref = $filter_table->{sfilter})->{referenced}};
run_user_exit1 'initdone';
setup_blacklist;