diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2011-10-26 02:03:33 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2011-10-26 02:03:33 +0200 |
commit | a71b4036179108e3de89a8859f1e2d90f4407451 (patch) | |
tree | 6b57c09d6b863c3b7444ad1bedbb2f11532ace7b /net | |
parent | 9be7bd1055aabdbbc663005ad11bc4b9cc1215f2 (diff) | |
download | prosody-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.lua | 1 |
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; |