dbus-manager: check return of unit_dbus_path
Reply of dbus_message_new_method_return was check twice and path from unit_dbus_path was not.
This commit is contained in:
parent
380d7cc5b7
commit
b3c2cf3d8e
|
@ -641,7 +641,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(
|
||||
|
|
Loading…
Reference in New Issue