aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2011-10-26 02:03:33 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2011-10-26 02:03:33 +0200
commit8d5ffd8d1a65a773ac7b67627b8ce116fbe522d2 (patch)
tree6b57c09d6b863c3b7444ad1bedbb2f11532ace7b /net
parent9c0e66e2d3b6bf83df25fa31d5e6ef9707b9d805 (diff)
downloadprosody-8d5ffd8d1a65a773ac7b67627b8ce116fbe522d2.tar.gz
prosody-8d5ffd8d1a65a773ac7b67627b8ce116fbe522d2.zip
s2smanager, net.dns: Fix handling for NXNAME and SRV target of "."
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 8f428476..5b32a56c 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -358,6 +358,7 @@ function resolver:name() -- - - - - - - - - - - - - - - - - - - - - - name
local remember, pointers = nil, 0;
local len = self:byte();
local n = {};
+ if len == 0 then return "." end -- Root label
while len > 0 do
if len >= 0xc0 then -- name is "compressed"
pointers = pointers + 1;