Fix check for unreferenced 'sfilter' chain

This commit is contained in:
Tom Eastep 2011-05-28 08:31:36 -07:00
parent fc34f07a7a
commit 243e8f1dbe

View File

@ -533,7 +533,7 @@ sub add_common_rules() {
#
# Delete 'sfilter' chain unless there are referenced to it
#
$chainref->{referenced} = 0 unless @{($chainref = $filter_table->{sfilter})->{referenced}};
$chainref->{referenced} = 0 unless keys %{($chainref = $filter_table->{sfilter})->{references}};
run_user_exit1 'initdone';