summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/taler-merchant-httpd_private-post-transfers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-transfers.c b/src/backend/taler-merchant-httpd_private-post-transfers.c
index 5ac4ec9d..0e3f798e 100644
--- a/src/backend/taler-merchant-httpd_private-post-transfers.c
+++ b/src/backend/taler-merchant-httpd_private-post-transfers.c
@@ -1225,6 +1225,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
&wire_fee))
{
GNUNET_break (0);
+ TMH_db->rollback (TMH_db->cls);
return TALER_MHD_reply_with_error (
connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
@@ -1238,6 +1239,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Amount of expected was %s\n",
TALER_amount2s (&delta));
+ TMH_db->rollback (TMH_db->cls);
return TALER_MHD_reply_with_error (
connection,
MHD_HTTP_CONFLICT,
@@ -1254,6 +1256,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Amount submitted was %s\n",
TALER_amount2s (&ptc->amount));
+ TMH_db->rollback (TMH_db->cls);
return TALER_MHD_reply_with_error (
connection,
MHD_HTTP_CONFLICT,
@@ -1357,6 +1360,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
"deposit_sums", deposit_sums);
} /* end of 'verified == true' (not an 'if'!) */
} /* end of 'switch (qs)' */
+ GNUNET_assert (0);
} /* end of 'for(retries...) */
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,