mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix trivial access of un-initialised memory.
Thanks to sven falpin for finding this.
This commit is contained in:
@@ -680,7 +680,7 @@ void receive_query(struct listener *listen, time_t now)
|
|||||||
dst_addr_4.s_addr = 0;
|
dst_addr_4.s_addr = 0;
|
||||||
netmask.s_addr = 0;
|
netmask.s_addr = 0;
|
||||||
|
|
||||||
if (listen->iface && option_bool(OPT_NOWILD))
|
if (option_bool(OPT_NOWILD) && listen->iface)
|
||||||
{
|
{
|
||||||
auth_dns = listen->iface->dns_auth;
|
auth_dns = listen->iface->dns_auth;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user