From: Thomas Hindoe Paaboel Andersen Date: Tue, 19 May 2015 04:45:52 +0000 (+0200) Subject: core: fix OOM checks in dbus-unit X-Git-Tag: v220~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e861098bf22d8e65c3b2589e7ca056e720a06483;p=thirdparty%2Fsystemd.git core: fix OOM checks in dbus-unit CID#1299014 --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 6d80ea95fa9..1892725f91b 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -716,7 +716,7 @@ static int send_new_signal(sd_bus *bus, void *userdata) { assert(u); p = unit_dbus_path(u); - if (!u) + if (!p) return -ENOMEM; r = sd_bus_message_new_signal( @@ -793,7 +793,7 @@ static int send_removed_signal(sd_bus *bus, void *userdata) { assert(u); p = unit_dbus_path(u); - if (!u) + if (!p) return -ENOMEM; r = sd_bus_message_new_signal(