From d0eecf5392ce7b0db86a706ec5f97eee57b6fafa Mon Sep 17 00:00:00 2001 From: patrik Date: Fri, 29 Oct 2010 17:19:06 +0000 Subject: [PATCH] Fixed the following error reported by Ron: NSE: test threw an error! [string "local connect, socket_lock = ...;..."]:4: bad argument #2 to 'connect' (string expected, got boolean) stack traceback: [C]: in function 'connect' [string "local connect, socket_lock = ...;..."]:4: in function 'connect' ./nselib/dns.lua:53: in function 'sendPackets' ./nselib/dns.lua:252: in function <./nselib/dns.lua:215> (tail call): ? (tail call): ? (tail call): ? (tail call): ? ././test.nse:41: in function <././test.nse:15> (tail call): ? [Patrik] --- nselib/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/dns.lua b/nselib/dns.lua index 6d916409f..82a3736d1 100644 --- a/nselib/dns.lua +++ b/nselib/dns.lua @@ -154,7 +154,7 @@ local function getAuthDns(rPkt) end if #hosts > 0 then return hosts end end - local next = query(rPkt.auth[1].domain, {dtype = "A" }) + local status, next = query(rPkt.auth[1].domain, {dtype = "A" }) return next end return false