[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: misc bugfixes
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: misc bugfixes |
Date: |
Tue, 02 Mar 2021 22:36:12 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 2921164 misc bugfixes
2921164 is described below
commit 29211646125ace3a554fec06a04d7db0b5264ccd
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Mar 2 22:36:10 2021 +0100
misc bugfixes
---
src/lib/anastasis_recovery.c | 3 ++-
src/reducer/anastasis_api_recovery_redux.c | 15 +++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/lib/anastasis_recovery.c b/src/lib/anastasis_recovery.c
index c6f5853..97d5324 100644
--- a/src/lib/anastasis_recovery.c
+++ b/src/lib/anastasis_recovery.c
@@ -1142,7 +1142,7 @@ parse_dps_array (struct ANASTASIS_Recovery *r,
}
GNUNET_JSON_parse_free (spec);
}
- return GNUNET_SYSERR;
+ return GNUNET_OK;
}
@@ -1212,6 +1212,7 @@ ANASTASIS_recovery_deserialize (struct
GNUNET_CURL_Context *ctx,
parse_dps_array (r,
dps_arr)) )
{
+ GNUNET_break_op (0);
ANASTASIS_recovery_abort (r);
GNUNET_JSON_parse_free (spec);
return NULL;
diff --git a/src/reducer/anastasis_api_recovery_redux.c
b/src/reducer/anastasis_api_recovery_redux.c
index 8a24c29..2872506 100644
--- a/src/reducer/anastasis_api_recovery_redux.c
+++ b/src/reducer/anastasis_api_recovery_redux.c
@@ -154,7 +154,11 @@ sctx_free (void *cls)
{
struct SelectChallengeContext *sctx = cls;
- ANASTASIS_recovery_abort (sctx->r);
+ if (NULL != sctx->r)
+ {
+ ANASTASIS_recovery_abort (sctx->r);
+ sctx->r = NULL;
+ }
json_decref (sctx->state);
json_decref (sctx->args);
if (NULL != sctx->delayed_report)
@@ -453,6 +457,7 @@ answer_feedback_cb (
uuid,
err));
}
+ GNUNET_break_op (0);
set_state (sctx->state,
ANASTASIS_GENERIC_STATE_ERROR);
sctx->cb (sctx->cb_cls,
@@ -473,6 +478,7 @@ answer_feedback_cb (
uuid,
err));
}
+ GNUNET_break_op (0);
set_state (sctx->state,
ANASTASIS_GENERIC_STATE_ERROR);
sctx->cb (sctx->cb_cls,
@@ -516,7 +522,7 @@ run_challenge_cb (void *cls,
if (NULL == ri)
{
- GNUNET_break (0);
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (sctx->cb,
sctx->cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -532,6 +538,7 @@ run_challenge_cb (void *cls,
if (NULL == challenge)
{
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (sctx->cb,
sctx->cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -548,6 +555,7 @@ run_challenge_cb (void *cls,
spec,
NULL, NULL))
{
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (sctx->cb,
sctx->cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -716,6 +724,7 @@ run_challenge (json_t *state,
"recovery_document");
if (NULL == rd)
{
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (cb,
cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -737,6 +746,7 @@ run_challenge (json_t *state,
json_decref (sctx->state);
json_decref (sctx->args);
GNUNET_free (sctx);
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (cb,
cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
@@ -1409,6 +1419,7 @@ providers_complete (struct RecoverSecretState *rss)
spec,
NULL, NULL))
{
+ GNUNET_break_op (0);
ANASTASIS_redux_fail_ (rss->cb,
rss->cb_cls,
TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.