mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-26 08:08:59 +01:00
Correct Typo and add length check for action names
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1504 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d2cba308ce
commit
97ae6f3f5d
@ -1498,7 +1498,7 @@ setup_tunnels() # $1 = name of tunnels file
|
||||
|
||||
setup_one_generic() # $1 = gateway, $2 = kind:protocol[:port], $3 = Gateway Zone
|
||||
{
|
||||
local procotol
|
||||
local protocol
|
||||
local p=
|
||||
|
||||
case $2 in
|
||||
@ -2931,6 +2931,7 @@ process_actions1() {
|
||||
case $xaction in
|
||||
*:*)
|
||||
temp=${xaction#*:}
|
||||
[ ${#temp} -lt 12 ] || fatal_error "Action Name Too Long: $temp"
|
||||
xaction=${xaction%:*}
|
||||
case $temp in
|
||||
ACCEPT|REJECT|DROP)
|
||||
|
Loading…
Reference in New Issue
Block a user