From 80f8f73bc3881a0e9e63ada48aa9189616c7baa5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 23 Sep 2018 17:29:41 +0200 Subject: [PATCH] ipv4: Fix ipv4_range_explicit function Inputs where not converted correctly and therefore the function returned an invalid output. Signed-off-by: Michael Tremer --- src/functions/functions.ipv4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/functions.ipv4 b/src/functions/functions.ipv4 index d19be518..eafbe227 100644 --- a/src/functions/functions.ipv4 +++ b/src/functions/functions.ipv4 @@ -380,9 +380,9 @@ ipv4_range_explicit() { ;; *.*.*.*/*) first=$(ipv4_get_network ${range}) - first="$(ip_split_prefix "${range}")" + first="$(ip_split_prefix "${first}")" last=$(ipv4_get_broadcast ${range}) - last="$(ip_split_prefix "${range}")" + last="$(ip_split_prefix "${last}")" ;; esac -- 2.47.3