mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-09 23:28:13 +01:00
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:
parent
72040177a8
commit
7ca413d831
@ -785,6 +785,7 @@ case "$COMMAND" in
|
|||||||
;;
|
;;
|
||||||
ipdecimal)
|
ipdecimal)
|
||||||
[ -n "$debugging" ] && set -x
|
[ -n "$debugging" ] && set -x
|
||||||
|
[ $# -eq 2 ] || usage 1
|
||||||
case $2 in
|
case $2 in
|
||||||
*.*.*.*)
|
*.*.*.*)
|
||||||
valid_address $2 || fatal_error "Invalid IP address: $2"
|
valid_address $2 || fatal_error "Invalid IP address: $2"
|
||||||
|
Loading…
Reference in New Issue
Block a user