summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich2022-01-26 11:00:21 +0000
committerJo-Philipp Wich2022-01-26 11:00:21 +0000
commit8c8a86728b2d39ae629e9feb7003182823b89c40 (patch)
tree9e0d59addd88674425e0621c4980e88e6a8c32cf
parentd63cb8950577fd22179423b15cf114e2097bdb05 (diff)
downloadfirewall4-8c8a86728b2d39ae629e9feb7003182823b89c40.tar.gz
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 <jo@mein.io>
-rw-r--r--root/usr/share/ucode/fw4.uc2
1 files changed, 1 insertions, 1 deletions
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 ];