[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix #7151
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix #7151 |
Date: |
Wed, 23 Mar 2022 05:19:16 +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 9b7716f9 fix #7151
9b7716f9 is described below
commit 9b7716f9f2f8b3b4661ff07c891c8077e715062b
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Mar 23 05:19:09 2022 +0100
fix #7151
---
src/testing/testing_api_cmd_change_auth.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/src/testing/testing_api_cmd_change_auth.c
b/src/testing/testing_api_cmd_change_auth.c
index 588eaa73..c3a60a1d 100644
--- a/src/testing/testing_api_cmd_change_auth.c
+++ b/src/testing/testing_api_cmd_change_auth.c
@@ -89,6 +89,22 @@ authchange_run (void *cls,
}
+/**
+ * Call GNUNET_CURL_fini(). Done as a separate task to
+ * ensure that all of the command's cleanups have been
+ * executed first. See #7151.
+ *
+ * @param cls a `struct GNUNET_CURL_Context *` to clean up.
+ */
+static void
+deferred_cleanup_cb (void *cls)
+{
+ struct GNUNET_CURL_Context *ctx = cls;
+
+ GNUNET_CURL_fini (ctx);
+}
+
+
/**
* Cleanup the state from a "authchange" CMD.
*
@@ -104,7 +120,8 @@ authchange_cleanup (void *cls,
(void) cmd;
if (NULL != ss->old_ctx)
{
- GNUNET_CURL_fini (ss->old_ctx);
+ (void) GNUNET_SCHEDULER_add_now (&deferred_cleanup_cb,
+ 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 #7151,
gnunet <=