]> git.meshlink.io Git - catta/commitdiff
Hopefully fix a segfault when shutting down the daemon, found by maro
authorLennart Poettering <lennart@poettering.net>
Sat, 19 Nov 2005 01:11:15 +0000 (01:11 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 19 Nov 2005 01:11:15 +0000 (01:11 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1011 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/wide-area.c

index abb00318b233d435817e883370e9e90ff640aeae..0af12244929d27f3c6f9f07ebd3251a801c02819 100644 (file)
@@ -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)