diff options
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r-- | avahi-core/wide-area.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c index abb0031..0af1224 100644 --- a/avahi-core/wide-area.c +++ b/avahi-core/wide-area.c @@ -596,6 +596,9 @@ AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s) { } /* Create watches */ + + e->watch_ipv4 = e->watch_ipv6 = NULL; + if (e->fd_ipv4 >= 0) e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_event, e); if (e->fd_ipv6 >= 0) |