From 54c77c0054c13aed866c19bec1179a886eaefea8 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 bd2e6767..888abfbb 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