From 911cb9d48898a35652e0e8ae53a7b5459522431d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 18 Nov 2009 01:05:38 +0000 Subject: net.dns: Be more strict about checking the DNS replies we receive --- net/dns.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/dns.lua b/net/dns.lua index 04b2cf22..5d5f512f 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -726,7 +726,8 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive local packet = sock:receive(); if packet then response = self:decode(packet); - if response then + if response and self.active[response.header.id] + and self.active[response.header.id][response.question.raw] then --print('received response'); --self.print(response); -- cgit v1.2.3