aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-03 01:13:06 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-03 01:13:06 +0000
commit54c77c0054c13aed866c19bec1179a886eaefea8 (patch)
tree5501856be69222e45f4ebf819863d4e43dada6da /net
parent0ab240e0eb67622774b5a1c6f5b829db3a617721 (diff)
downloadprosody-54c77c0054c13aed866c19bec1179a886eaefea8.tar.gz
prosody-54c77c0054c13aed866c19bec1179a886eaefea8.zip
net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...)
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
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