1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00

Fix a bug in dns.lua: ensure that dns.query() always return two values (status and response).

Update asn-query.nse accordingly.
This commit is contained in:
henri
2011-09-22 18:00:44 +00:00
parent feb691f534
commit b7df13296e
2 changed files with 4 additions and 4 deletions

View File

@@ -287,8 +287,8 @@ function asn_description( asn )
-- send query
local query = ( "AS%s.asn.cymru.com" ):format( asn )
local decoded_response, other_response = dns.query( query, options)
if type( decoded_response ) ~= "string" then
local status, decoded_response = dns.query( query, options )
if not status then
return ""
end