Commit f8abe0c5 authored by Simon Kelley's avatar Simon Kelley

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

parent 9def963c
...@@ -117,7 +117,10 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n ...@@ -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)
continue; {
auth = 0;
continue;
}
if (qtype == T_PTR) if (qtype == T_PTR)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment