Skip trailing \0 in domain name.

This commit is contained in:
Giovanni Bajo
2012-04-22 15:53:52 +02:00
committed by Simon Kelley
parent 970ce22b68
commit c7a93f6e4e

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;