Fix DNSSEC validation errors introduced in 4fe6744a22

This commit is contained in:
Simon Kelley
2018-01-20 00:10:55 +00:00
parent c1a4e257a3
commit cd7df612b1

View File

@@ -1610,7 +1610,7 @@ static int prove_non_existence(struct dns_header *header, size_t plen, char *key
int type_covered;
unsigned char *psav = p1;
if (rdlen < 18)
if (rdlen1 < 18)
return 0; /* bad packet */
GETSHORT(type_covered, p1);