mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
import of dnsmasq-2.3.tar.gz
This commit is contained in:
@@ -620,7 +620,7 @@ int setup_reply(HEADER *header, unsigned int qlen,
|
||||
header->ancount = htons(0); /* no answers unless changed below*/
|
||||
if (flags == F_NEG)
|
||||
header->rcode = SERVFAIL; /* couldn't get memory */
|
||||
else if (flags == F_NOERR)
|
||||
else if (flags == F_NOERR || flags == F_QUERY)
|
||||
header->rcode = NOERROR; /* empty domain */
|
||||
else if (flags == F_NXDOMAIN)
|
||||
header->rcode = NXDOMAIN;
|
||||
|
||||
Reference in New Issue
Block a user