1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-02 11:39:03 +00:00

Fix a problem, reported by David, which resulted in an error arising from an

unexpected value for the "data" table after repeating queries at the same
service for the same IP (which should not ever happen).
This commit is contained in:
jah
2009-05-01 23:35:44 +00:00
parent d3651a95ee
commit 55ded906f2

View File

@@ -738,6 +738,7 @@ function analyse_response( tracking, ip, response, data )
-- redirected to a previously queried service - accept as result
data = data[nextdb]
data.id = nextdb
nextdb = nil
elseif have_objects and ( data.iana > 1 ) and not table.concat( tracking.completed, " " ):match( nmap.registry.whois.whoisdb.arin.id ) then
-- two redirects to IANA - query ARIN next (which we should probably have done already!)
nextdb = nmap.registry.whois.whoisdb.arin.id
@@ -745,6 +746,7 @@ function analyse_response( tracking, ip, response, data )
-- two redirects to IANA - accept result from ARIN
data = data[nmap.registry.whois.whoisdb.arin.id]
data.id = nmap.registry.whois.whoisdb.arin.id
nextdb = nil
end
-- cache our analysis