From: Jo-Philipp Wich Date: Wed, 26 Jan 2022 11:00:21 +0000 (+0100) Subject: fw4: fix wrong `parse_network()` return value on `parse_subnet()` failure X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8c8a86728b2d39ae629e9feb7003182823b89c40;p=project%2Ffirewall4.git 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 --- 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 ];