From a2604f7967d592ef0a9cce9bd9c73c83418f0adc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Apr 2022 11:18:33 +0200 Subject: [PATCH] -style fix --- src/exchange/taler-exchange-httpd_db.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index f736a508e..53b935ba4 100644 --- a/src/exchange/taler-exchange-httpd_db.c +++ b/src/exchange/taler-exchange-httpd_db.c @@ -123,10 +123,12 @@ TEH_DB_run_transaction (struct MHD_Connection *connection, connection, mhd_ret); if (0 > qs) + { TEH_plugin->rollback (TEH_plugin->cls); - if (GNUNET_DB_STATUS_HARD_ERROR == qs) - return GNUNET_SYSERR; - if (0 <= qs) + if (GNUNET_DB_STATUS_HARD_ERROR == qs) + return GNUNET_SYSERR; + } + else { qs = TEH_plugin->commit (TEH_plugin->cls); if (GNUNET_DB_STATUS_HARD_ERROR == qs)