[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix command to avoid timing-dep
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix command to avoid timing-dependent assertion failure |
Date: |
Thu, 02 Dec 2021 06:41:52 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new e8fc5d8d -fix command to avoid timing-dependent assertion failure
e8fc5d8d is described below
commit e8fc5d8d5c5eb07c9b6be41fd9bab0552a6ac672
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 2 06:41:49 2021 +0100
-fix command to avoid timing-dependent assertion failure
---
src/testing/testing_api_cmd_change_auth.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/testing/testing_api_cmd_change_auth.c
b/src/testing/testing_api_cmd_change_auth.c
index 2f0f95b7..588eaa73 100644
--- a/src/testing/testing_api_cmd_change_auth.c
+++ b/src/testing/testing_api_cmd_change_auth.c
@@ -37,6 +37,11 @@ struct AuthchangeState
* What is the new authorization token to send?
*/
const char *auth_token;
+
+ /**
+ * Old context, clean up on termination.
+ */
+ struct GNUNET_CURL_Context *old_ctx;
};
@@ -55,11 +60,7 @@ authchange_run (void *cls,
struct AuthchangeState *ss = cls;
(void) cmd;
- if (NULL != is->ctx)
- {
- GNUNET_CURL_fini (is->ctx);
- is->ctx = NULL;
- }
+ ss->old_ctx = is->ctx;
if (NULL != is->rc)
{
GNUNET_CURL_gnunet_rc_destroy (is->rc);
@@ -101,6 +102,11 @@ authchange_cleanup (void *cls,
struct AuthchangeState *ss = cls;
(void) cmd;
+ if (NULL != ss->old_ctx)
+ {
+ GNUNET_CURL_fini (ss->old_ctx);
+ ss->old_ctx = NULL;
+ }
GNUNET_free (ss);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix command to avoid timing-dependent assertion failure,
gnunet <=