forked from extern/shorewall_code
Fix crash when loglevel of none! is specified on non-action rule. Note
that this crash only occurs when using rules outside the documented format. Reported by Matt "Cyber Dog" LaPlante (webmaster at cyberdogtech dot com). git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2238 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9817b0159c
commit
a1ee82580e
@ -4660,11 +4660,13 @@ process_rule() # $1 = target
|
||||
expandv logtag
|
||||
fi
|
||||
|
||||
if [ "$loglevel" = none ]; then
|
||||
[ "$target" = LOG ] && return
|
||||
loglevel=
|
||||
logtag=
|
||||
fi
|
||||
case $loglevel in
|
||||
none*)
|
||||
loglevel=
|
||||
logtag=
|
||||
[ $target = LOG ] && return
|
||||
;;
|
||||
esac
|
||||
|
||||
loglevel=${loglevel%\!}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user