commit f0f36b4f1b82024eb775bb65ae29861350806da3 parent ec6a7c0478c517f334d013969cd492d3d52e49e8 Author: Christian Grothoff <grothoff@gnunet.org> Date: Tue, 14 Jul 2026 23:38:47 +0200 avoid theoretical assertion violation from child death during shutdown Diffstat:
| M | src/backend/taler-merchant-httpd_post-challenge-ID.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-challenge-ID.c b/src/backend/taler-merchant-httpd_post-challenge-ID.c @@ -217,6 +217,13 @@ TMH_challenge_done () { if (GNUNET_YES == mfa->suspended) { + /* Make sure transmission_done_cb() cannot fire after + we resumed the connection here. */ + if (NULL != mfa->cwh) + { + GNUNET_wait_child_cancel (mfa->cwh); + mfa->cwh = NULL; + } mfa->suspended = GNUNET_SYSERR; MHD_resume_connection (mfa->hc->connection); }