summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-01-01 15:08:12 +0100
committerJens Georg <mail@jensge.org>2022-01-01 15:10:46 +0100
commitf809b024be7a2142c6902efbcc403a7a4c68ea90 (patch)
tree2519e807c38ba10af07c0aa3c4ea2d116bbdd2c6
parent1708847496c3bbc9ab7a3850a084102d9a27b768 (diff)
downloadgupnp-f809b024be7a2142c6902efbcc403a7a4c68ea90.tar.gz
ServiceProxy: Fix access to uninitialized priv
-rw-r--r--libgupnp/gupnp-service-proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index bb1026b..24a99c6 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -1738,6 +1738,8 @@ subscribe_got_response (GObject *source, GAsyncResult *res, gpointer user_data)
GUPnPServiceProxyPrivate *priv;
SubscriptionCallData *data = user_data;
+ priv = gupnp_service_proxy_get_instance_private (data->proxy);
+
GBytes *body = soup_session_send_and_read_finish (SOUP_SESSION (source),
res,
&error);
@@ -1754,7 +1756,6 @@ subscribe_got_response (GObject *source, GAsyncResult *res, gpointer user_data)
}
/* Remove from pending messages list */
- priv = gupnp_service_proxy_get_instance_private (data->proxy);
priv->pending_messages =
g_list_remove (priv->pending_messages, data->msg);