mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 19:30:44 +01:00
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:
parent
58f179e6c8
commit
3a67b4f76c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user