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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user