[systemd-commits] src/core

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Mon May 18 21:47:05 PDT 2015


 src/core/dbus-unit.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e861098bf22d8e65c3b2589e7ca056e720a06483
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Tue May 19 06:45:52 2015 +0200

    core: fix OOM checks in dbus-unit
    
    CID#1299014

diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 6d80ea9..1892725 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(



More information about the systemd-commits mailing list