From 3235065a1ec4d8b9f9f350b170bcc48bdd5fd306 Mon Sep 17 00:00:00 2001 From: jah Date: Tue, 28 Apr 2009 22:41:53 +0000 Subject: [PATCH] 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' --- nselib/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/dns.lua b/nselib/dns.lua index 36e71794c..ae12bcf13 100644 --- a/nselib/dns.lua +++ b/nselib/dns.lua @@ -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: