From 26709f8b3b8331f92b4c02f3499eef1067282e18 Mon Sep 17 00:00:00 2001 From: jah Date: Wed, 22 Jul 2009 10:12:17 +0000 Subject: [PATCH] Changed the handling of the values returned from dns.query() (changed in r14493) --- scripts/html-title.nse | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/html-title.nse b/scripts/html-title.nse index 1710de866..967556964 100644 --- a/scripts/html-title.nse +++ b/scripts/html-title.nse @@ -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