This commit is contained in:
Simon Kelley
2014-03-01 15:35:50 +00:00
parent 00a5b5d477
commit 14db4212ab

View File

@@ -2153,9 +2153,8 @@ static int check_rrs(unsigned char *p, struct dns_header *header, size_t plen, i
if (class == C_IN)
{
u16 *d;
unsigned char *pp = p;
for (d = get_desc(type); *d != (u16)-1; d++)
for (pp = p, d = get_desc(type); *d != (u16)-1; d++)
{
if (*d != 0)
pp += *d;