# HG changeset patch # User Matthew Wild # Date 1259802786 0 # Node ID 8a01b08986798fd3ba0c5b6998fbd2b2d0d8fd1d # Parent e182b5029ef2a932a1de18e339ff1a7388dbb3b3 net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...) diff -r e182b5029ef2 -r 8a01b0898679 net/dns.lua --- a/net/dns.lua Thu Dec 03 01:10:08 2009 +0000 +++ b/net/dns.lua Thu Dec 03 01:13:06 2009 +0000 @@ -745,7 +745,7 @@ 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