Commit aa67fe7a authored by Simon Kelley's avatar Simon Kelley

Catch NULL pointer deref if qdcount == 0

parent bb2509fd
...@@ -470,7 +470,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n ...@@ -470,7 +470,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
} }
/* Add auth section */ /* Add auth section */
if (auth) if (auth && zone)
{ {
char *authname; char *authname;
int newoffset, offset = 0; int newoffset, offset = 0;
......
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