[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: minor fixes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: minor fixes |
Date: |
Wed, 05 Jun 2019 13:24:57 +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 a39f6df40 minor fixes
a39f6df40 is described below
commit a39f6df40cf8bf89cf714580886414831ba9f68a
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Jun 5 13:24:15 2019 +0200
minor fixes
---
src/reclaim/plugin_rest_reclaim.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/reclaim/plugin_rest_reclaim.c
b/src/reclaim/plugin_rest_reclaim.c
index 1efd1f9ea..18309e68c 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -755,7 +755,7 @@ revoke_ticket_cont (struct GNUNET_REST_RequestHandle
*con_handle,
const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity_priv;
struct RequestHandle *handle = cls;
struct EgoEntry *ego_entry;
- struct GNUNET_RECLAIM_Ticket *ticket;
+ struct GNUNET_RECLAIM_Ticket *ticket = NULL;
struct GNUNET_CRYPTO_EcdsaPublicKey tmp_pk;
char term_data[handle->rest_handle->data_size + 1];
json_t *data_json;
@@ -774,12 +774,14 @@ revoke_ticket_cont (struct GNUNET_REST_RequestHandle
*con_handle,
handle->rest_handle->data,
handle->rest_handle->data_size);
data_json = json_loads (term_data, JSON_DECODE_ANY, &err);
- if (GNUNET_OK != GNUNET_JSON_parse (data_json, tktspec, NULL, NULL))
+ if ((NULL == data_json) ||
+ (GNUNET_OK != GNUNET_JSON_parse (data_json, tktspec, NULL, NULL)))
{
handle->emsg = GNUNET_strdup ("Not a ticket!\n");
GNUNET_SCHEDULER_add_now (&do_error, handle);
GNUNET_JSON_parse_free (tktspec);
- json_decref (data_json);
+ if (NULL != data_json)
+ json_decref (data_json);
return;
}
json_decref (data_json);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: minor fixes,
gnunet <=