mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
d85fbc318d
commit
3235065a1e
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue