aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-06-13 16:38:53 +0200
committerKim Alvefur <zash@zash.se>2017-06-13 16:38:53 +0200
commitc4def1909c1050c1852b92c90910fbe0abadcaba (patch)
tree027f373f39d309bbe3d85c2da089f0c59904e131
parent7586690f44817e61f5a0ef8974a7bdba38d86028 (diff)
parent9e04351ec4952f458374d6d0de2975baed8ab41c (diff)
downloadprosody-c4def1909c1050c1852b92c90910fbe0abadcaba.tar.gz
prosody-c4def1909c1050c1852b92c90910fbe0abadcaba.zip
Merge 0.10->trunk
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 20f85462..188bdf43 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -504,7 +504,7 @@ function resolver:rr() -- - - - - - - - - - - - - - - - - - - - - - - - rr
rr.ttl = 0x10000*self:word() + self:word();
rr.rdlength = self:word();
- rr.tod = self.time + rr.ttl;
+ rr.tod = self.time + math.min(rr.ttl, 1);
local remember = self.offset;
local rr_parser = self[dns.type[rr.type]];