Skip to content
Snippets Groups Projects
Commit ff36ff31 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

session: ensure the exported properties do not leak object, client & factory ids

These are set by the server on the global properties set
parent 7b222ebc
No related branches found
No related tags found
No related merge requests found
......@@ -503,6 +503,11 @@ wp_exported_session_export (WpExported * self)
g_autoptr (WpCore) core = wp_exported_get_core (self);
struct pw_client_session_proxy *pw_proxy = NULL;
/* make sure these props are not present; they are added by the server */
wp_properties_set (priv->properties, PW_KEY_OBJECT_ID, NULL);
wp_properties_set (priv->properties, PW_KEY_CLIENT_ID, NULL);
wp_properties_set (priv->properties, PW_KEY_FACTORY_ID, NULL);
priv->client_sess = wp_core_create_remote_object (core, "client-session",
PW_TYPE_INTERFACE_ClientSession, PW_VERSION_CLIENT_SESSION_PROXY,
priv->properties);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment