commit 8ce9433736f799a89a85409b99e61649d4bdf74f
parent 647ae694cc9f1aef44e792b96676b115231e8898
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 1 May 2023 23:10:44 +0200
fix uninitialized old_scope
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_reserves_get.c b/src/exchange/taler-exchange-httpd_reserves_get.c
@@ -52,6 +52,11 @@ struct ReservePoller
struct MHD_Connection *connection;
/**
+ * Our request context.
+ */
+ struct TEH_RequestContext *rc;
+
+ /**
* Subscription for the database event we are
* waiting for.
*/
@@ -154,6 +159,8 @@ db_event_cb (void *cls,
(void) extra_size;
if (! rp->suspended)
return; /* might get multiple wake-up events */
+ GNUNET_async_scope_enter (&rp->rc->async_scope_id,
+ &old_scope);
TEH_check_invariants ();
rp->suspended = false;
MHD_resume_connection (rp->connection);
@@ -176,6 +183,7 @@ TEH_handler_reserves_get (struct TEH_RequestContext *rc,
rp = GNUNET_new (struct ReservePoller);
rp->connection = rc->connection;
+ rp->rc = rc;
rc->rh_ctx = rp;
rc->rh_cleaner = &rp_cleanup;
GNUNET_CONTAINER_DLL_insert (rp_head,