[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -coverity
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -coverity |
Date: |
Thu, 01 Sep 2022 14:25:14 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new a36485c53 -coverity
a36485c53 is described below
commit a36485c5380917777ae3b8f7b43ecbd18518511d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Sep 1 14:25:11 2022 +0200
-coverity
---
src/json/json_helper.c | 1 +
src/reclaim/plugin_rest_openid_connect.c | 28 ++++++++++++++--------------
2 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 39949819f..aadc6804d 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -137,6 +137,7 @@ parse_fixed64_data (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Field `%s' has wrong length\n",
spec->field);
+ GNUNET_free (output);
return GNUNET_SYSERR;
}
memcpy (spec->ptr,
diff --git a/src/reclaim/plugin_rest_openid_connect.c
b/src/reclaim/plugin_rest_openid_connect.c
index 8eb30aded..7ab603768 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -2168,27 +2168,27 @@ token_endpoint (struct GNUNET_REST_RequestHandle
*con_handle,
void *cls)
{
struct RequestHandle *handle = cls;
- const struct EgoEntry *ego_entry;
+ const struct EgoEntry *ego_entry = NULL;
struct GNUNET_TIME_Relative expiration_time;
struct GNUNET_RECLAIM_AttributeList *cl = NULL;
struct GNUNET_RECLAIM_PresentationList *pl = NULL;
struct GNUNET_RECLAIM_Ticket ticket;
struct GNUNET_IDENTITY_PublicKey cid;
struct GNUNET_HashCode cache_key;
- struct MHD_Response *resp;
- char *grant_type;
- char *code;
- char *json_response;
- char *id_token;
- char *access_token;
- char *jwa;
- char *jwt_secret;
+ struct MHD_Response *resp = NULL;
+ char *grant_type = NULL;
+ char *code = NULL;
+ char *json_response = NULL;
+ char *id_token = NULL;
+ char *access_token = NULL;
+ char *jwa = NULL;
+ char *jwt_secret = NULL;
char *nonce = NULL;
- char *code_verifier;
- json_t *oidc_jwk;
- char *oidc_jwk_path;
- char *oidc_directory;
- char *tmp_at;
+ char *code_verifier = NULL;
+ json_t *oidc_jwk = NULL;
+ char *oidc_jwk_path = NULL;
+ char *oidc_directory = NULL;
+ char *tmp_at = NULL;
/*
* Check Authorization
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated: -coverity,
gnunet <=