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:
paulgear 2005-06-28 22:22:40 +00:00
parent 9817b0159c
commit a1ee82580e

View File

@ -4660,11 +4660,13 @@ process_rule() # $1 = target
expandv logtag expandv logtag
fi fi
if [ "$loglevel" = none ]; then case $loglevel in
[ "$target" = LOG ] && return none*)
loglevel= loglevel=
logtag= logtag=
fi [ $target = LOG ] && return
;;
esac
loglevel=${loglevel%\!} loglevel=${loglevel%\!}
fi fi