Commit c7a93f6e authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

Skip trailing \0 in domain name.

parent 970ce22b
...@@ -99,6 +99,7 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf) ...@@ -99,6 +99,7 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf)
} }
*buf++ = '.'; *buf++ = '.';
} }
rr++;
*buf = 0; *buf = 0;
if (rr == end) if (rr == end)
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment