Bad packet protection.

This commit is contained in:
Simon Kelley
2014-12-27 15:33:32 +00:00
parent 32fc6dbe03
commit 0b1008d367

View File

@@ -805,7 +805,7 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
{
while (*name_start != '.' && *name_start != 0)
name_start++;
if (k != 1)
if (k != 1 && *name_start == '.')
name_start++;
}