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