From 59a9fce47b3304bc9ce5d31b04ade5447b3910a4 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 15 May 2014 20:50:02 +0200 Subject: timesyncd: fix error path return value https://bugs.freedesktop.org/show_bug.cgi?id=78752 --- src/timesync/timesyncd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index 13cd3b1ed3..d26e8cbd6b 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) -- cgit v1.2.3-54-g00ecf