[systemd-commits] src/journal-remote
Tom Gundersen
tomegun at kemper.freedesktop.org
Thu Sep 18 09:33:52 PDT 2014
src/journal-remote/journal-remote.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit b1604b341bcd190d67894f416d842990a082a4a4
Author: Andreas Henriksson <andreas at fatal.se>
Date: Thu Sep 18 17:52:54 2014 +0200
journal-remote: check return code of sd_event_default
Handle sd_event_default returning error and bail out properly
as done in every other caller of this function.
Found by coverity. Fixes: CID#1238957
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 12de820..f06c2cb 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -808,7 +808,11 @@ static int remoteserver_init(RemoteServer *s,
return -EINVAL;
}
- sd_event_default(&s->events);
+ r = sd_event_default(&s->events);
+ if (r < 0) {
+ log_error("Failed to allocate event loop: %s", strerror(-r));
+ return r;
+ }
setup_signals(s);
More information about the systemd-commits
mailing list