forked from extern/shorewall_code
Correct existing optimization issue
This commit is contained in:
parent
215c05d12b
commit
6a1487d628
@ -2040,8 +2040,7 @@ sub logchain( $$$$$$ ) {
|
|||||||
$logtag,
|
$logtag,
|
||||||
'add',
|
'add',
|
||||||
'' );
|
'' );
|
||||||
|
add_jump( $logchainref, $target, 0, $exceptionrule );
|
||||||
add_rule( $logchainref, $exceptionrule . $target );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$logchainref;
|
$logchainref;
|
||||||
@ -3849,9 +3848,11 @@ sub expand_rule( $$$$$$$$$$;$ )
|
|||||||
#
|
#
|
||||||
# Find/Create a chain that both logs and applies the target action
|
# Find/Create a chain that both logs and applies the target action
|
||||||
# and jump to the log chain if all of the rule's conditions are met
|
# and jump to the log chain if all of the rule's conditions are met
|
||||||
#
|
#
|
||||||
|
assert( $target );
|
||||||
|
|
||||||
add_jump( $chainref,
|
add_jump( $chainref,
|
||||||
logchain( $chainref, $loglevel, $logtag, $exceptionrule , $disposition, $jump ),
|
logchain( $chainref, $loglevel, $logtag, $exceptionrule , $disposition, $target ),
|
||||||
$builtin_target{$disposition},
|
$builtin_target{$disposition},
|
||||||
$matches,
|
$matches,
|
||||||
1 );
|
1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user