]> git.ipfire.org Git - people/ms/network.git/commitdiff
ipv4: Fix ipv4_range_explicit function
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 15:29:41 +0000 (17:29 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 15:29:41 +0000 (17:29 +0200)
Inputs where not converted correctly and therefore
the function returned an invalid output.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ipv4

index d19be518246d9497e6aea9d811d4a6621e17db43..eafbe227874334db765dc909421aed439806292a 100644 (file)
@@ -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