aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim')
-rw-r--r--src/reclaim/oidc_helper.c4
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 9a99c5668..5ad1ff0a0 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -364,8 +364,8 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
364 364
365 } 365 }
366 if (NULL != nonce_str) 366 if (NULL != nonce_str)
367 memcpy (&purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket), 367 memcpy (nonce_str,
368 nonce_str, 368 &purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
369 strlen (nonce_str)); 369 strlen (nonce_str));
370 if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN, 370 if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
371 purpose, 371 purpose,
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 06815d9d1..1846df901 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -903,8 +903,7 @@ lookup_redirect_uri_result (void *cls,
903 (unsigned char) '/'); 903 (unsigned char) '/');
904 *pos = '\0'; 904 *pos = '\0';
905 handle->redirect_suffix = GNUNET_strdup (pos + 1); 905 handle->redirect_suffix = GNUNET_strdup (pos + 1);
906 GNUNET_free (tmp); 906
907
908 GNUNET_STRINGS_string_to_data (tmp_key_str, 907 GNUNET_STRINGS_string_to_data (tmp_key_str,
909 strlen (tmp_key_str), 908 strlen (tmp_key_str),
910 &redirect_zone, 909 &redirect_zone,
@@ -917,6 +916,8 @@ lookup_redirect_uri_result (void *cls,
917 handle, 916 handle,
918 &get_client_name_result, 917 &get_client_name_result,
919 handle); 918 handle);
919 GNUNET_free (tmp);
920
920} 921}
921 922
922/** 923/**
@@ -1476,7 +1477,6 @@ check_authorization (struct RequestHandle *handle,
1476 cid, 1477 cid,
1477 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)); 1478 sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey));
1478 1479
1479 GNUNET_free (client_id);
1480 GNUNET_free (basic_authorization); 1480 GNUNET_free (basic_authorization);
1481 return GNUNET_OK; 1481 return GNUNET_OK;
1482} 1482}