# HG changeset patch # User Matthew Wild # Date 1258506338 0 # Node ID b9bbb709d62e92b484eb3ddb060a6399f66214b2 # Parent ca419b92a8c7b5834a66304c56f604274381b90d net.dns: Be more strict about checking the DNS replies we receive diff -r ca419b92a8c7 -r b9bbb709d62e net/dns.lua --- a/net/dns.lua Fri Nov 13 06:29:37 2009 +0500 +++ b/net/dns.lua Wed Nov 18 01:05:38 2009 +0000 @@ -726,7 +726,8 @@ 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);