Edit addresses in interactive commands -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5148 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-21 21:10:54 +00:00
parent a07797bdac
commit cd566ebbd0

View File

@ -756,7 +756,7 @@ case "$COMMAND" in
fi
valid_address $address || fatal_error "Invalid IP address: $address"
if [ -z "$vlsm" ] && exit 2
[ -z "$vlsm" ] && exit 2
[ "x$address" = "x$vlsm" ] && usage 2
[ $vlsm -gt 32 ] && echo "Invalid VLSM: /$vlsm" >&2 && exit 2