From 1bdaeafd441242366d6775f1ae4c38647e6f83ee Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 19 Nov 2005 01:11:15 +0000 Subject: [PATCH] Hopefully fix a segfault when shutting down the daemon, found by maro git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1011 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/wide-area.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5