Fix crash in auth code for queries where class != C_IN

This commit is contained in:
Simon Kelley
2012-12-15 11:59:25 +00:00
parent 9def963c65
commit f8abe0c566

View File

@@ -117,7 +117,10 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
GETSHORT(qclass, p); GETSHORT(qclass, p);
if (qclass != C_IN) if (qclass != C_IN)
{
auth = 0;
continue; continue;
}
if (qtype == T_PTR) if (qtype == T_PTR)
{ {