Software / code / prosody
Diff
net/dns.lua @ 4797:e239668aa6d2
Merge 0.9->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 29 Apr 2012 02:10:55 +0100 |
| parent | 4422:c25dee24623f |
| child | 5266:5c3a3ef6b769 |
line wrap: on
line diff
--- a/net/dns.lua Sun Apr 29 02:09:12 2012 +0100 +++ b/net/dns.lua Sun Apr 29 02:10:55 2012 +0100 @@ -358,6 +358,7 @@ 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;