From 490f351cecd3bdc9f0ecb792a8df75e7a9e31e30 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 3 Dec 2009 01:13:06 +0000 Subject: net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...) --- net/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dns.lua b/net/dns.lua index 9863164d..08bc53a9 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -745,7 +745,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive if not next(self.active) then self:closeall(); end -- was the query on the wanted list? - local q = response.question; + local q = response.question[1]; local cos = get(self.wanted, q.class, q.type, q.name); if cos then for co in pairs(cos) do -- cgit v1.2.3