Package: libvirt / 0.9.12.3-1+deb7u1

Don-t-fail-if-we-can-t-setup-avahi.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Sat, 14 Jan 2012 18:09:01 +0100
Subject: Don't fail if we can't setup avahi

---
 src/rpc/virnetserver.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index ae19e84..33dc807 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -672,9 +672,8 @@ void virNetServerRun(virNetServerPtr srv)
     virNetServerLock(srv);
 
 #if HAVE_AVAHI
-    if (srv->mdns &&
-        virNetServerMDNSStart(srv->mdns) < 0)
-        goto cleanup;
+    if (srv->mdns)
+        virNetServerMDNSStart(srv->mdns);
 #endif
 
     if (srv->autoShutdownTimeout &&