mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 15:09:01 +00:00
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]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user