Skip trailing \0 in domain name.

This commit is contained in:
Giovanni Bajo authored and Simon Kelley committed 2013-08-20 15:41:18 +01:00
1 parent 970ce22b68
commit c7a93f6e4e
1 file changed
+1
+1
View File
@@ -99,6 +99,7 @@ static int extract_name_no_compression(unsigned char *rr, int maxlen, char *buf)
}
*buf++ = '.';
}
rr++;
*buf = 0;
if (rr == end)
return 0;