aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_openid_connect.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-11 15:15:12 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-11 15:15:12 +0900
commit62ff1af48c60b1fc5c5d21096d7134e0d60a7582 (patch)
tree98a15ccb103c96bfaf9c176bcd6d6c12d7c09264 /src/reclaim/plugin_rest_openid_connect.c
parent1e4cb697efcd7289da981eb44cca40bccc421c72 (diff)
downloadgnunet-62ff1af48c60b1fc5c5d21096d7134e0d60a7582.tar.gz
gnunet-62ff1af48c60b1fc5c5d21096d7134e0d60a7582.zip
-cleanup various warnings
Diffstat (limited to 'src/reclaim/plugin_rest_openid_connect.c')
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 7bb249c68..4ead538ec 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -2467,9 +2467,10 @@ consume_ticket (void *cls,
2467 &cache_key); 2467 &cache_key);
2468 if (NULL != cached_code) 2468 if (NULL != cached_code)
2469 { 2469 {
2470 GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, 2470 GNUNET_assert (GNUNET_YES ==
2471 &cache_key, 2471 GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache,
2472 cached_code); 2472 &cache_key,
2473 cached_code));
2473 GNUNET_free (cached_code); 2474 GNUNET_free (cached_code);
2474 } 2475 }
2475 2476
@@ -2562,9 +2563,10 @@ consume_fail (void *cls)
2562 /** 2563 /**
2563 * Remove the cached item 2564 * Remove the cached item
2564 */ 2565 */
2565 GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, 2566 GNUNET_assert (GNUNET_YES ==
2566 &cache_key, 2567 GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache,
2567 cached_code); 2568 &cache_key,
2569 cached_code));
2568 2570
2569 // decode code 2571 // decode code
2570 if (GNUNET_OK != OIDC_parse_authz_code (&handle->ticket.audience, 2572 if (GNUNET_OK != OIDC_parse_authz_code (&handle->ticket.audience,