diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-23 08:24:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-23 08:24:59 +0200 |
commit | 01e06eb715938b914c54123c21c7c7678e08ee02 (patch) | |
tree | 85d8053916faa7bfddb711023d8c7959cb83aa5f /src/auditor/taler-auditor-httpd_deposit-confirmation.c | |
parent | 82a5038acf5302957ca450d9c262f6fed59a45ba (diff) | |
download | exchange-01e06eb715938b914c54123c21c7c7678e08ee02.tar.xz |
-remove sessions also from auditor
Diffstat (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd_deposit-confirmation.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index f38e8ee71..c7a23d718 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -62,7 +62,6 @@ verify_and_execute_deposit_confirmation ( const struct TALER_AUDITORDB_DepositConfirmation *dc, const struct TALER_AUDITORDB_ExchangeSigningKey *es) { - struct TALER_AUDITORDB_Session *session; enum GNUNET_DB_QueryStatus qs; struct GNUNET_TIME_Absolute now; struct GNUNET_HashCode h; @@ -96,8 +95,8 @@ verify_and_execute_deposit_confirmation ( cached = GNUNET_CONTAINER_multihashmap_get (cache, &h); GNUNET_assert (0 == pthread_mutex_unlock (&lock)); - session = TAH_plugin->get_session (TAH_plugin->cls); - if (NULL == session) + if (GNUNET_SYSERR == + TAH_plugin->preflight (TAH_plugin->cls)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -126,7 +125,6 @@ verify_and_execute_deposit_confirmation ( /* execute transaction */ qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls, - session, es); if (0 > qs) { @@ -216,7 +214,6 @@ verify_and_execute_deposit_confirmation ( /* execute transaction */ qs = TAH_plugin->insert_deposit_confirmation (TAH_plugin->cls, - session, dc); if (0 > qs) { |