From e861098bf22d8e65c3b2589e7ca056e720a06483 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 19 May 2015 06:45:52 +0200 Subject: [PATCH] core: fix OOM checks in dbus-unit CID#1299014 --- src/core/dbus-unit.c | 4 ++-- 1 file 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(