X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=root%2Fusr%2Fshare%2Fucode%2Ffw4.uc;h=b725459c77d22d0a4f8ba924661a07c2239ca124;hb=9bce87374e7ecee5ab29bb210df6691f1b701229;hp=b81f9adcb9ecb1e987c36bea398bfcfa105b5346;hpb=425ea8a736ac81948bad7e201f4817848cb1813c;p=project%2Ffirewall4.git diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index b81f9ad..b725459 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -1432,7 +1432,7 @@ return { case 'ipv4_addr': ip = filter(this.parse_subnet(values[i]), a => (a.family == 4)); - switch (length(ip)) { + switch (length(ip) ?? 0) { case 0: return null; case 1: break; default: this.warn("Set entry '%s' resolves to multiple addresses, using first one", values[i]);