Fix more log level bugs

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6112 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-25 00:11:02 +00:00
parent 58f179e6c8
commit 3a67b4f76c

View File

@ -1171,7 +1171,7 @@ sub process_rule ( $$$$$$$$$ ) {
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
if ( $optimize > 0 ) {
my $loglevel = $policychainref->{loglevel};
if ( $loglevel ne '' ) {
if ( defined $loglevel && $loglevel ne '' ) {
next if $target eq "${policy}:$loglevel}";
} else {
next if $action eq $policy;
@ -1191,7 +1191,7 @@ sub process_rule ( $$$$$$$$$ ) {
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
if ( $optimize > 0 ) {
my $loglevel = $policychainref->{loglevel};
if ( $loglevel ne '') {
if ( defined $loglevel && $loglevel ne '') {
next if $target eq "${policy}:$loglevel}";
} else {
next if $action eq $policy;
@ -1212,7 +1212,7 @@ sub process_rule ( $$$$$$$$$ ) {
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
if ( $optimize > 0 ) {
my $loglevel = $policychainref->{loglevel};
if ( $loglevel ne '' ) {
if ( defined $loglevel && $loglevel ne '' ) {
next if $target eq "${policy}:$loglevel}";
} else {
next if $action eq $policy;