mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
Catch invalid use of COMMENT in action body
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6210 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
92823f08f3
commit
fddc6e69ea
@ -602,6 +602,7 @@ process_actions1() {
|
|||||||
ACCEPT|DROP|REJECT|LOG|QUEUE|CONTINUE)
|
ACCEPT|DROP|REJECT|LOG|QUEUE|CONTINUE)
|
||||||
;;
|
;;
|
||||||
COMMENT)
|
COMMENT)
|
||||||
|
[ "$temp" = "$xtarget" ] || fatal_error "Invalid TARGET in rule \"$rule\""
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if list_search $temp $ACTIONS; then
|
if list_search $temp $ACTIONS; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user