Another tweak to check_state()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-06 12:07:51 -08:00
parent 272e1d330c
commit e4ae242123

View File

@ -2727,8 +2727,16 @@ sub check_state( $ ) {
} else {
$state =~ /^(?:INVALID|UNTRACKED)$/;
}
} else {
} elsif ( $sectionref ) {
#
# we're dealing with a rules chain
#
$state eq $section_rmap{$section} ? 2 : 1;
} else {
#
# An action chain -- we can't predict where it will get invoked so populate it fully
#
1;
}
}