Bug 78752 - incorrect return value in timesyncd.c:manager_new
Summary: incorrect return value in timesyncd.c:manager_new
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium minor
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 18:23 UTC by Christian Persch (GNOME)
Modified: 2014-05-15 18:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Christian Persch (GNOME) 2014-05-15 18:23:22 UTC
It looks to me like in one error return path the wrong value is returned in src/timesync/timesyncd.c:manager_new():

         r = sd_resolve_attach_event(m->resolve, m->event, 0);
         if (r < 0)
-                return 0;
+                return r;


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.