Commit 78f0b117 authored by Kalev Lember's avatar Kalev Lember

service-manager: Look up existing client path when reconnecting

Previously, we were passing in uninitialized memory.
parent 64a6fb7a
......@@ -81,8 +81,12 @@ gclue_service_manager_handle_get_client (GClueManager *manager,
peer = g_dbus_method_invocation_get_sender (invocation);
client = g_hash_table_lookup (priv->clients, peer);
if (client != NULL) {
gclue_manager_complete_get_client (manager, invocation, path);
const gchar *existing_path;
existing_path = gclue_service_client_get_path (client);
gclue_manager_complete_get_client (manager,
return TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment