aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 74fb71135..6c71155ef 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -1493,6 +1493,7 @@ get_url_parameter_copy (const struct RequestHandle *handle, const char *key)
1493{ 1493{
1494 struct GNUNET_HashCode hc; 1494 struct GNUNET_HashCode hc;
1495 char *value; 1495 char *value;
1496 char *res;
1496 1497
1497 GNUNET_CRYPTO_hash (key, strlen (key), &hc); 1498 GNUNET_CRYPTO_hash (key, strlen (key), &hc);
1498 if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains (handle->rest_handle 1499 if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains (handle->rest_handle
@@ -1503,7 +1504,8 @@ get_url_parameter_copy (const struct RequestHandle *handle, const char *key)
1503 GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map, &hc); 1504 GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map, &hc);
1504 if (NULL == value) 1505 if (NULL == value)
1505 return NULL; 1506 return NULL;
1506 return GNUNET_STRINGS_urldecode (value); 1507 GNUNET_STRINGS_urldecode (value, strlen (value), &res);
1508 return res;
1507} 1509}
1508 1510
1509 1511