mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Fix syntax error in validate_policy() when duplicate policy detected
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3618 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
be01fd09e1
commit
35f737054a
@ -106,4 +106,6 @@ Changes in 3.1.x.
|
||||
|
||||
45) Move 'shorecap' to /usr/share/shorewall
|
||||
|
||||
46) Add debian prog files.
|
||||
46) Add debian prog files.
|
||||
|
||||
47) Correct syntax error in validate_policy()
|
||||
|
@ -1504,7 +1504,7 @@ validate_policy()
|
||||
chain=${client}2${server}
|
||||
|
||||
if is_policy_chain $chain ; then
|
||||
if eval test \$${chain}_is_optional = Yes ; then
|
||||
if eval test -n \"\$${chain}_is_optional\" ; then
|
||||
eval ${chain}_is_optional=
|
||||
else
|
||||
fatal_error "Duplicate policy: $client $server $policy"
|
||||
|
@ -38,6 +38,8 @@ Problems Corrected in 3.1.9
|
||||
3) An undefined function 'delete_nat' was previously called when a compiled
|
||||
program was issued the 'stop' or 'clear' command.
|
||||
|
||||
4) A shell syntax error was reported if a duplicate policy was detected.
|
||||
|
||||
Other changes in 3.1.9
|
||||
|
||||
1) The 'redhat' distribution is now supported in the compile command's -d
|
||||
|
Loading…
Reference in New Issue
Block a user