1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 09:29:01 +00:00

Fixed: dns.query() calls dns.sendPackets() with the wrong number of parameters

which makes the 'to' value in a for .. to loop of type 'nil' - causing:

nselib/dns.lua:54: 'for' limit must be a number
stack traceback:
	nselib/dns.lua:54: in function 'sendPackets'
	nselib/dns.lua:194: in function 'query'
This commit is contained in:
jah
2009-04-28 22:41:53 +00:00
parent d85fbc318d
commit 3235065a1e

View File

@@ -191,7 +191,7 @@ function query(dname, options)
while((not status) and srv and srvI < #srv) do
srvI = srvI + 1
host = srv[srvI]
status, response = sendPackets(data, host, port, options.sendCount)
status, response = sendPackets(data, host, port, options.timeout, options.sendCount)
end
-- if we got any response: