fw4: fix wrong `parse_network()` return value on `parse_subnet()` failure
authorJo-Philipp Wich <jo@mein.io>
Wed, 26 Jan 2022 11:00:21 +0000 (12:00 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 26 Jan 2022 11:00:21 +0000 (12:00 +0100)
Ref: https://forum.openwrt.org/t/x/118427
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc

index 8a549e16947cb623398a1fa9d9256276e5b6d8bd..8564ca5ef2ebd2cc24ad606f36eaae2782191330 100644 (file)
@@ -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 ];