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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user