curieproxy: handle errors by skipping invalid CIDR entries
@@ -109,6 +109,10 @@ function gen_list_entries(lst, handle)
local start_addr, end_addr = parse_cidr(cidr)
-- [[start,end], annotation]
+ if start_addr == nil then
+ handle:logWarn(string.format("CIDR %s could not be parsed",
+ cidr))
+ else
elem = { {start_addr, end_addr}, get_annotation(data) }
handle:logDebug(string.format("MC %s CIDR %s S %s E %s EL %s",
mastercategory, cidr, start_addr, end_addr, elem))
@@ -119,6 +123,7 @@ function gen_list_entries(lst, handle)
end
end
end
+ end
if #masterdict['iprange'] > 0 then
masterdict['iprange'] = build_ranges_lists(masterdict['iprange'])
end
