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