Software /
code /
prosody
Changeset
2081:b9bbb709d62e
net.dns: Be more strict about checking the DNS replies we receive
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 18 Nov 2009 01:05:38 +0000 |
parents | 2080:ca419b92a8c7 |
children | 2082:1381b2071c2e |
files | net/dns.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);