summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-19 06:45:52 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-19 06:46:59 +0200
commite861098bf22d8e65c3b2589e7ca056e720a06483 (patch)
treef5c3c48b25dba34671f63d1e1eb087cc29e195d2 /src/core
parentb669934fae49c9158c35e612e54e1765edca8584 (diff)
core: fix OOM checks in dbus-unit
CID#1299014
Diffstat (limited to 'src/core')
-rw-r--r--src/core/dbus-unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 6d80ea95fa..1892725f91 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(