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:
Matt Darfeuille 2018-08-04 15:29:53 +02:00 committed by Tom Eastep
parent 9cbcb328af
commit 732ae3ce19
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -3775,7 +3775,7 @@ ipcalc_command() {
elif [ $# -eq 3 ]; then
address=$2
vlsm=$(ip_vlsm $3)
elif [ $# -eq 0 ]; then
elif [ $# -eq 1 ]; then
missing_argument
else
too_many_arguments $4