summaryrefslogtreecommitdiffstats
path: root/avahi-core/wide-area.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-19 01:11:15 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-19 01:11:15 +0000
commit1bdaeafd441242366d6775f1ae4c38647e6f83ee (patch)
tree19d60738b2010e0d2166cc011a44684b0fdc9e12 /avahi-core/wide-area.c
parentfd18eca4a12fbd982f0cea4fa8764d2a4bc53e19 (diff)
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
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r--avahi-core/wide-area.c3
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)