diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-05-01 23:10:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-05-01 23:10:44 +0200 |
commit | 8ce9433736f799a89a85409b99e61649d4bdf74f (patch) | |
tree | ae9a66b542b46b7d25b3c043d77de3d357565da8 | |
parent | 647ae694cc9f1aef44e792b96676b115231e8898 (diff) |
fix uninitialized old_scope
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserves_get.c | 8 |
1 files 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 index c22e62bf5..21c0b74aa 100644 --- 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, |