aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd_deposit-confirmation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-17 13:06:28 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-17 13:06:28 +0100
commit31b413fed228e84bfe968f6223ee5ae39520aa19 (patch)
treed6bb29b285a438d74eafba9186a31093fea3a1c9 /src/auditor/taler-auditor-httpd_deposit-confirmation.c
parent862448305cb79a62ecd1d86b63a6980b2a8fa395 (diff)
simplify DB logic in auditor-httpd
Diffstat (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation.c')
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
index f42cc3747..2d73bab28 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
@@ -89,8 +89,9 @@ verify_and_execute_deposit_confirmation (struct MHD_Connection *connection,
qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls,
session,
es);
- if (GNUNET_DB_STATUS_HARD_ERROR == qs)
+ if (0 > qs)
{
+ GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
TALER_LOG_WARNING ("Failed to store exchange signing key in database\n");
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,