Correctly detect duplicate entry in interfaces file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@79 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-06-18 15:44:17 +00:00
parent ce5030ac2b
commit d5bfd4e40a

View File

@ -443,7 +443,7 @@ validate_interfaces_file() {
r="$z $interface $subnet $options"
[ "x$z" = "x-" ] || validate_zone $z || startup_error "Invalid zone ($z) in record \"$r\""
list_search $intr $all_interfaces && \
list_search $interface $all_interfaces && \
startup_error "Duplicate Interface $intr"
all_interfaces="$all_interfaces $interface"