mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Changed the handling of the values returned from dns.query() (changed in r14493)
This commit is contained in:
parent
3bb8e6a7c0
commit
26709f8b3b
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue