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

This commit is contained in:
Simon Kelley committed 2012-12-15 11:59:25 +00:00
1 parent 9def963c65
commit f8abe0c566
1 file changed
+4 -1
+4 -1
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);
if (qclass != C_IN)
continue;
{
auth = 0;
continue;
}
if (qtype == T_PTR)
{