diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2020-12-30 20:58:55 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2020-12-30 20:58:55 +0900 |
commit | c0465ff926f1b87a375ff320d367cbbabfddb38f (patch) | |
tree | cf32bb93a83235c8175aba682b4437d644bc4ec4 /src/reclaim/json_reclaim.c | |
parent | 3ea7b6e726d80050bc3541e56fc6f9d1a5dbb72a (diff) | |
download | gnunet-c0465ff926f1b87a375ff320d367cbbabfddb38f.tar.gz gnunet-c0465ff926f1b87a375ff320d367cbbabfddb38f.zip |
RECLAIM: Fix quirky OIDC address handling
Diffstat (limited to 'src/reclaim/json_reclaim.c')
-rw-r--r-- | src/reclaim/json_reclaim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reclaim/json_reclaim.c b/src/reclaim/json_reclaim.c index 6c945036a..4eeb22bee 100644 --- a/src/reclaim/json_reclaim.c +++ b/src/reclaim/json_reclaim.c | |||
@@ -95,6 +95,7 @@ parse_attr (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec) | |||
95 | } | 95 | } |
96 | attr = GNUNET_RECLAIM_attribute_new (name_str, NULL, | 96 | attr = GNUNET_RECLAIM_attribute_new (name_str, NULL, |
97 | type, data, data_size); | 97 | type, data, data_size); |
98 | GNUNET_free (data); | ||
98 | if ((NULL != cred_str) && (0 != strlen (cred_str))) | 99 | if ((NULL != cred_str) && (0 != strlen (cred_str))) |
99 | { | 100 | { |
100 | GNUNET_STRINGS_string_to_data (cred_str, | 101 | GNUNET_STRINGS_string_to_data (cred_str, |
@@ -334,6 +335,7 @@ parse_credential (void *cls, json_t *root, struct GNUNET_JSON_Specification *spe | |||
334 | return GNUNET_SYSERR; | 335 | return GNUNET_SYSERR; |
335 | } | 336 | } |
336 | cred = GNUNET_RECLAIM_credential_new (name_str, type, data, data_size); | 337 | cred = GNUNET_RECLAIM_credential_new (name_str, type, data, data_size); |
338 | GNUNET_free (data); | ||
337 | if ((NULL == id_str) || (0 == strlen (id_str))) | 339 | if ((NULL == id_str) || (0 == strlen (id_str))) |
338 | memset (&cred->id, 0, sizeof (cred->id)); | 340 | memset (&cred->id, 0, sizeof (cred->id)); |
339 | else | 341 | else |