diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-18 21:10:37 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-18 21:10:37 +0200 |
commit | 62a7f9b7117cc98e4e1d964a0cd35de2215c39d0 (patch) | |
tree | 8b3a7f076be94e58fc5c0b496777d191c6ded7dc /src/kyclogic/taler-exchange-kyc-tester.c | |
parent | f0cd54dc102cc531805d14d4deb0d2d479ce591c (diff) | |
download | exchange-62a7f9b7117cc98e4e1d964a0cd35de2215c39d0.tar.xz |
-misc bugfixes for persona kyc logic
Diffstat (limited to 'src/kyclogic/taler-exchange-kyc-tester.c')
-rw-r--r-- | src/kyclogic/taler-exchange-kyc-tester.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-tester.c b/src/kyclogic/taler-exchange-kyc-tester.c index b13be4bee..bb2894b11 100644 --- a/src/kyclogic/taler-exchange-kyc-tester.c +++ b/src/kyclogic/taler-exchange-kyc-tester.c @@ -390,7 +390,6 @@ kwh_resume (struct KycWebhookContext *kwh) kwh_tail, kwh); MHD_resume_connection (kwh->rc->connection); - TALER_MHD_daemon_trigger (); } @@ -464,6 +463,7 @@ webhook_finished_cb ( kwh->response = response; kwh->response_code = http_status; kwh_resume (kwh); + TALER_MHD_daemon_trigger (); } @@ -600,7 +600,7 @@ handler_kyc_webhook_generic ( /* We resumed, but got no response? This should not happen. */ - GNUNET_break (0); + GNUNET_assert (0); return TALER_MHD_reply_with_error (rc->connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, @@ -829,6 +829,8 @@ handle_mhd_completion_callback (void *cls, TALER_MHD_parse_post_cleanup_callback (rc->opaque_post_parsing_context); /* Sanity-check that we didn't leave any transactions hanging */ + if (NULL != rc->root) + json_decref (rc->root); GNUNET_free (rc); *con_cls = NULL; } |