From 732ae3ce1997d75a738fef35ffd3b9bea7d94e01 Mon Sep 17 00:00:00 2001 From: Matt Darfeuille Date: Sat, 4 Aug 2018 15:29:53 +0200 Subject: [PATCH] Ipcalc: Fail when missing arguments Signed-off-by: Matt Darfeuille Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index c3d24e29f..1e2ea2507 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -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