summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-23 17:15:12 +0200
committerTimm Bäder <mail@baedert.org>2016-04-23 17:15:12 +0200
commitf9f61ad1df598d67572765dc4ac60f261bac9a0c (patch)
treee9579a81e05d198891fe8021b53a3da268d18700
parentb6541c92e26d7086dd4ad6d43906daf1185578c4 (diff)
downloadlibrest-f9f61ad1df598d67572765dc4ac60f261bac9a0c.tar.gz
OAuthProxy: Pass proper data to callbacks
-rw-r--r--rest/oauth-proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest/oauth-proxy.c b/rest/oauth-proxy.c
index b4a8700..5801cd6 100644
--- a/rest/oauth-proxy.c
+++ b/rest/oauth-proxy.c
@@ -344,7 +344,7 @@ request_token_cb (GObject *source_object,
oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call));
- data->callback (source_object, result, user_data);
+ data->callback (source_object, result, data->user_data);
g_slice_free (AuthData, data);
g_object_unref (call);
@@ -461,7 +461,7 @@ access_token_cb (GObject *source_object,
oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call));
/*}*/
- data->callback (source_object, result, user_data);
+ data->callback (source_object, result, data->user_data);
g_slice_free (AuthData, data);
g_object_unref (call);