[systemd-commits] src/timesync

Kay Sievers kay at kemper.freedesktop.org
Thu May 15 11:50:56 PDT 2014


 src/timesync/timesyncd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 59a9fce47b3304bc9ce5d31b04ade5447b3910a4
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu May 15 20:50:02 2014 +0200

    timesyncd: fix error path return value
    
    https://bugs.freedesktop.org/show_bug.cgi?id=78752

diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 13cd3b1..d26e8cb 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -981,7 +981,7 @@ static int manager_new(Manager **ret) {
 
         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)



More information about the systemd-commits mailing list