mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 16:18:13 +01:00
Catch invalid use of COMMENT in action body -- Take 3
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6212 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
8644d1aac0
commit
c5da826241
@ -602,8 +602,10 @@ process_actions1() {
|
|||||||
ACCEPT|DROP|REJECT|LOG|QUEUE|CONTINUE)
|
ACCEPT|DROP|REJECT|LOG|QUEUE|CONTINUE)
|
||||||
;;
|
;;
|
||||||
COMMENT)
|
COMMENT)
|
||||||
rule="$xtarget $xclients $xservers $xprotocol $xports $xcports $xratelimit $xuserspec $xmark"
|
if [ "$temp" != "$xtarget" ]; then
|
||||||
[ "$temp" = "$xtarget" ] || fatal_error "Invalid TARGET in rule \"$rule\""
|
rule="$xtarget $xclients $xservers $xprotocol $xports $xcports $xratelimit $xuserspec $xmark"
|
||||||
|
fatal_error "Invalid TARGET in rule \"$rule\""
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if list_search $temp $ACTIONS; then
|
if list_search $temp $ACTIONS; then
|
||||||
|
Loading…
Reference in New Issue
Block a user