1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Changed the handling of the values returned from dns.query() (changed in r14493)

This commit is contained in:
jah
2009-07-22 10:12:17 +00:00
parent 3bb8e6a7c0
commit 26709f8b3b

View File

@@ -174,10 +174,10 @@ function is_vhost( rhost, host )
opts.retAll = true
if host.ip:match( ":" ) then opts.dtype = "AAAA" end
local answer, msg = dns.query( rhost, opts )
local status, answer = dns.query( rhost, opts )
if not answer then
stdnse.print_debug( "html-title.nse: DNS query failed for target %s. Query was: %s. Error Code: %s", host.targetname or host.ip, rhost, msg or "nil" )
if not status then
stdnse.print_debug( "html-title.nse: DNS query failed for target %s. Query was: %s. Error: %s", host.targetname or host.ip, rhost, answer or "nil" )
return false
end