aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Wimbauer <anna.wimbauer@gmx.de>2020-04-27 09:27:19 +0200
committerAnna Wimbauer <anna.wimbauer@gmx.de>2020-04-27 09:27:19 +0200
commit9a91e41070e368e929e7534c047c8360e60d1901 (patch)
treef09a71a9a2418e134a0d1a3a1f16600ead571342
parente264221eb629019887019935e7680faa5ec36720 (diff)
downloadgnunet-9a91e41070e368e929e7534c047c8360e60d1901.tar.gz
gnunet-9a91e41070e368e929e7534c047c8360e60d1901.zip
fixed nullpointer
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 14a96ed19..295de0d97 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -576,8 +576,10 @@ cleanup_handle (struct RequestHandle *handle)
576 json_decref (handle->oidc->response); 576 json_decref (handle->oidc->response);
577 GNUNET_free (handle->oidc); 577 GNUNET_free (handle->oidc);
578 } 578 }
579 GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list); 579if(NULL!=handle->attr_list)
580 GNUNET_RECLAIM_attestation_list_destroy (handle->attests_list); 580 GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list);
581if(NULL!=handle->attests_list)
582 GNUNET_RECLAIM_attestation_list_destroy (handle->attests_list);
581 583
582 for (ego_entry = handle->ego_head; NULL != ego_entry;) 584 for (ego_entry = handle->ego_head; NULL != ego_entry;)
583 { 585 {