From 55ded906f29f914325b5ec3e1d97628d6c7c0454 Mon Sep 17 00:00:00 2001 From: jah Date: Fri, 1 May 2009 23:35:44 +0000 Subject: [PATCH] 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). --- scripts/whois.nse | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/whois.nse b/scripts/whois.nse index 95db5360f..148d78e05 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -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