chiark / gitweb /
timesyncd: fix error path return value
authorKay Sievers <kay@vrfy.org>
Thu, 15 May 2014 18:50:02 +0000 (20:50 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 15 May 2014 18:50:02 +0000 (20:50 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=78752

src/timesync/timesyncd.c

index 13cd3b1..d26e8cb 100644 (file)
@@ -981,7 +981,7 @@ static int manager_new(Manager **ret) {
 
         r = sd_resolve_attach_event(m->resolve, m->event, 0);
         if (r < 0)
 
         r = sd_resolve_attach_event(m->resolve, m->event, 0);
         if (r < 0)
-                return 0;
+                return r;
 
         r = manager_clock_watch_setup(m);
         if (r < 0)
 
         r = manager_clock_watch_setup(m);
         if (r < 0)