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
commita71b4036179108e3de89a8859f1e2d90f4407451 (patch)
tree6b57c09d6b863c3b7444ad1bedbb2f11532ace7b /net
parent9be7bd1055aabdbbc663005ad11bc4b9cc1215f2 (diff)
downloadprosody-a71b4036179108e3de89a8859f1e2d90f4407451.tar.gz
prosody-a71b4036179108e3de89a8859f1e2d90f4407451.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;