1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

Prevent address-info from crashing when the IPv6 address is "not interesting"

This commit is contained in:
dmiller
2014-08-08 14:43:10 +00:00
parent b58913befa
commit a8d34b7635

View File

@@ -265,8 +265,6 @@ local function do_ipv6(addr)
if matches(addr, "2002:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX") then
-- 6to4, RFC 3056.
local ipv4 = { addr[3], addr[4], addr[5], addr[6] }
local mac = decode_eui_64({ addr[9], addr[10], addr[11], addr[12],
addr[13], addr[14], addr[15], addr[16] })
label = "6to4"
output["IPv4 address"] = format_ipv4(ipv4)
@@ -281,7 +279,10 @@ local function do_ipv6(addr)
end
end
return {[label]= output}
if label then
return {[label]= output}
end
-- else no match
end
action = function(host)