mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-14 10:29:33 +00:00
Catch NULL pointer deref if qdcount == 0
This commit is contained in:
1 parent
bb2509fd2c
commit
aa67fe7a8c
1 file changed
+1
-1
+1
-1
@@ -470,7 +470,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
|
||||
}
|
||||
|
||||
/* Add auth section */
|
||||
if (auth)
|
||||
if (auth && zone)
|
||||
{
|
||||
char *authname;
|
||||
int newoffset, offset = 0;
|
||||
|
||||
Reference in new issue
Block a user