[systemd-devel] [PATCH] dbus-manager: check return of unit_dbus_path

Lukas Nykryn lnykryn at redhat.com
Thu Oct 4 00:49:04 PDT 2012


Reply of dbus_message_new_method_return was check twice and
path from unit_dbus_path was not.
---
 src/core/dbus-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index 9cdecfc..003825a 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -622,7 +622,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
                         goto oom;
 
                 path = unit_dbus_path(u);
-                if (!reply)
+                if (!path)
                         goto oom;
 
                 if (!dbus_message_append_args(
-- 
1.7.6.5



More information about the systemd-devel mailing list