Don't create log chain for 'RETURN' rules

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-15 14:24:00 -08:00
parent 4546394531
commit 8aaf4aab3a

View File

@ -3256,7 +3256,7 @@ sub expand_rule( $$$$$$$$$$;$ )
if ( $loglevel ne '' ) {
if ( $disposition ne 'LOG' ) {
unless ( $logname ) {
unless ( $logname || $disposition eq 'RETURN' ) {
#
# 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
@ -3270,7 +3270,7 @@ sub expand_rule( $$$$$$$$$$;$ )
log_rule_limit(
$loglevel ,
$chainref ,
$logname ,
$logname || $chain,
$disposition ,
'',
$logtag,