From 8c8a86728b2d39ae629e9feb7003182823b89c40 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Jan 2022 12:00:21 +0100 Subject: [PATCH] fw4: fix wrong `parse_network()` return value on `parse_subnet()` failure Ref: https://forum.openwrt.org/t/x/118427 Signed-off-by: Jo-Philipp Wich --- root/usr/share/ucode/fw4.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index 8a549e1..8564ca5 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -991,7 +991,7 @@ return { let nets = this.parse_subnet(rv.val); if (nets === null) - return false; + return null; if (length(nets)) rv.addrs = [ ...nets ]; -- 2.30.2