summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-15 11:18:33 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-15 11:18:33 +0200
commita2604f7967d592ef0a9cce9bd9c73c83418f0adc (patch)
treeda32f64b61582c732c110a90b1732b6f16cbfeb8 /src
parenta13f90a15ee910c0ada316366e197de11bc6cc62 (diff)
downloadexchange-a2604f7967d592ef0a9cce9bd9c73c83418f0adc.tar.gz
exchange-a2604f7967d592ef0a9cce9bd9c73c83418f0adc.tar.bz2
exchange-a2604f7967d592ef0a9cce9bd9c73c83418f0adc.zip
-style fix
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c8
1 files 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)