aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-17 17:56:51 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-17 17:56:51 +0100
commita6639593e9c62764968f4a653edc6036ca8c27dc (patch)
tree5f5358530bb699e766dbdae8580f4ff56720034e
parenta3472930c03e481cc93668ac95004d881817c7e1 (diff)
downloadprosody-a6639593e9c62764968f4a653edc6036ca8c27dc.tar.gz
prosody-a6639593e9c62764968f4a653edc6036ca8c27dc.zip
net.dns: Don't cache some records indefinitely
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index fe327ed2..a1bdb7d7 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -443,7 +443,7 @@ function resolver:rr () -- - - - - - - - - - - - - - - - - - - - - - - - rr
rr.ttl = 0x10000*self:word () + self:word ()
rr.rdlength = self:word ()
- if rr.ttl == 0 then -- pass
+ if rr.ttl <= 0 then rr.tod = self.time;
else rr.tod = self.time + rr.ttl end
local remember = self.offset