diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 9c474d527..ad8e373fe 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -2255,16 +2255,19 @@ list_ego (void *cls, | |||
2255 | for (ego_entry = handle->ego_head; NULL != ego_entry; | 2255 | for (ego_entry = handle->ego_head; NULL != ego_entry; |
2256 | ego_entry = ego_entry->next) | 2256 | ego_entry = ego_entry->next) |
2257 | { | 2257 | { |
2258 | if (ego_entry->ego != ego) | 2258 | if (ego_entry->ego == ego) |
2259 | continue; | 2259 | break; |
2260 | GNUNET_CONTAINER_DLL_remove (handle->ego_head, | ||
2261 | handle->ego_tail, | ||
2262 | ego_entry); | ||
2263 | GNUNET_free (ego_entry->identifier); | ||
2264 | GNUNET_free (ego_entry->keystring); | ||
2265 | GNUNET_free (ego_entry); | ||
2266 | return; | ||
2267 | } | 2260 | } |
2261 | if (NULL == ego_entry) | ||
2262 | return; /* Not found */ | ||
2263 | |||
2264 | GNUNET_CONTAINER_DLL_remove (handle->ego_head, | ||
2265 | handle->ego_tail, | ||
2266 | ego_entry); | ||
2267 | GNUNET_free (ego_entry->identifier); | ||
2268 | GNUNET_free (ego_entry->keystring); | ||
2269 | GNUNET_free (ego_entry); | ||
2270 | return; | ||
2268 | } | 2271 | } |
2269 | } | 2272 | } |
2270 | 2273 | ||