Make --listen-address work for all 127.0.0.0/8 addresses.

This commit is contained in:
Simon Kelley
2012-03-21 21:39:48 +00:00
parent a953096485
commit 52d4abf2f9
6 changed files with 76 additions and 34 deletions

View File

@@ -660,7 +660,7 @@ void receive_query(struct listener *listen, time_t now)
/* packet buffer overwritten */
daemon->srv_save = NULL;
if (listen->family == AF_INET && option_bool(OPT_NOWILD))
if (listen->iface && listen->family == AF_INET && option_bool(OPT_NOWILD))
{
dst_addr_4 = listen->iface->addr.in.sin_addr;
netmask = listen->iface->netmask;