Check number of parameters to 'ipdecimal' command

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6379 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-16 22:47:22 +00:00
parent 72040177a8
commit 7ca413d831

View File

@ -785,6 +785,7 @@ case "$COMMAND" in
;;
ipdecimal)
[ -n "$debugging" ] && set -x
[ $# -eq 2 ] || usage 1
case $2 in
*.*.*.*)
valid_address $2 || fatal_error "Invalid IP address: $2"