Changeset

2763:083430330585

net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...)
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 Dec 2009 01:13:06 +0000
parents 2762:2bddf8b766f7
children 2764:6f5c30865ddf
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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