forked from extern/shorewall_code
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 ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
|
||||||
if ( $optimize > 0 ) {
|
if ( $optimize > 0 ) {
|
||||||
my $loglevel = $policychainref->{loglevel};
|
my $loglevel = $policychainref->{loglevel};
|
||||||
if ( $loglevel ne '' ) {
|
if ( defined $loglevel && $loglevel ne '' ) {
|
||||||
next if $target eq "${policy}:$loglevel}";
|
next if $target eq "${policy}:$loglevel}";
|
||||||
} else {
|
} else {
|
||||||
next if $action eq $policy;
|
next if $action eq $policy;
|
||||||
@ -1191,7 +1191,7 @@ sub process_rule ( $$$$$$$$$ ) {
|
|||||||
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
|
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
|
||||||
if ( $optimize > 0 ) {
|
if ( $optimize > 0 ) {
|
||||||
my $loglevel = $policychainref->{loglevel};
|
my $loglevel = $policychainref->{loglevel};
|
||||||
if ( $loglevel ne '') {
|
if ( defined $loglevel && $loglevel ne '') {
|
||||||
next if $target eq "${policy}:$loglevel}";
|
next if $target eq "${policy}:$loglevel}";
|
||||||
} else {
|
} else {
|
||||||
next if $action eq $policy;
|
next if $action eq $policy;
|
||||||
@ -1212,7 +1212,7 @@ sub process_rule ( $$$$$$$$$ ) {
|
|||||||
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
|
if ( ( ( my $policy ) = $policychainref->{policy} ) ne 'NONE' ) {
|
||||||
if ( $optimize > 0 ) {
|
if ( $optimize > 0 ) {
|
||||||
my $loglevel = $policychainref->{loglevel};
|
my $loglevel = $policychainref->{loglevel};
|
||||||
if ( $loglevel ne '' ) {
|
if ( defined $loglevel && $loglevel ne '' ) {
|
||||||
next if $target eq "${policy}:$loglevel}";
|
next if $target eq "${policy}:$loglevel}";
|
||||||
} else {
|
} else {
|
||||||
next if $action eq $policy;
|
next if $action eq $policy;
|
||||||
|
Loading…
Reference in New Issue
Block a user