Merge with 0.6
[prosody.git] / net / dns.lua
index 9863164d071a1ded4eaae9ef455b910c7b87ce5a..08bc53a9fdb13b3b5ddedf2c9f39104cb2bc7abb 100644 (file)
@@ -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