fw4: fix skipping invalid IPv6 ipset entries
[project/firewall4.git] / root / usr / share / ucode / fw4.uc
index a3384466538fe1298da55611b6294527f46bc7c7..d600528c80cee92d4cb818cc7f856a265a4516f2 100644 (file)
@@ -1439,7 +1439,7 @@ return {
                        case 'ipv6_addr':
                                ip = filter(this.parse_subnet(values[i]), a => (a.family == 6));
 
-                               switch(length(ip)) {
+                               switch (length(ip) ?? 0) {
                                case 0: return null;
                                case 1: break;
                                case 2: this.warn("Set entry '%s' resolves to multiple addresses, using first one", values[i]);
@@ -1884,8 +1884,7 @@ return {
 
                for (let helper in zone.helper) {
                        if (!helper.available) {
-                               this.warn_section(data, `uses unavailable ct helper '${zone.helper.name}', ignoring section`);
-                               return;
+                               this.warn_section(data, `uses unavailable ct helper '${zone.helper.name}'`);
                        }
                }