forked from extern/shorewall_code
Ipcalc: Fail when missing arguments
Signed-off-by: Matt Darfeuille <matdarf@gmail.com> Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9cbcb328af
commit
732ae3ce19
@ -3775,7 +3775,7 @@ ipcalc_command() {
|
|||||||
elif [ $# -eq 3 ]; then
|
elif [ $# -eq 3 ]; then
|
||||||
address=$2
|
address=$2
|
||||||
vlsm=$(ip_vlsm $3)
|
vlsm=$(ip_vlsm $3)
|
||||||
elif [ $# -eq 0 ]; then
|
elif [ $# -eq 1 ]; then
|
||||||
missing_argument
|
missing_argument
|
||||||
else
|
else
|
||||||
too_many_arguments $4
|
too_many_arguments $4
|
||||||
|
Loading…
Reference in New Issue
Block a user