aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dns.lua b/util/dns.lua
index 146c6343..f086f2c1 100644
--- a/util/dns.lua
+++ b/util/dns.lua
@@ -40,7 +40,7 @@ local parsers = {};
-- No support for pointers, but libunbound appears to take care of that.
local function readDnsName(packet, pos)
- if s_byte(packet, pos) == 0 then return "."; end
+ if s_byte(packet, pos) == 0 then return ".", pos+1; end
local pack_len, r, len = #packet, {};
pos = pos or 1;
repeat