summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_wire_fees.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_wire_fees.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_wire_fees.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_wire_fees.c b/src/exchange/taler-exchange-httpd_management_wire_fees.c
index 0a8bf4d1..5486ff33 100644
--- a/src/exchange/taler-exchange-httpd_management_wire_fees.c
+++ b/src/exchange/taler-exchange-httpd_management_wire_fees.c
@@ -187,8 +187,6 @@ TEH_handler_management_post_wire_fees (
&afc.wire_fee),
GNUNET_JSON_spec_end ()
};
- enum GNUNET_DB_QueryStatus qs;
- MHD_RESULT ret;
{
enum GNUNET_GenericReturnValue res;
@@ -221,13 +219,18 @@ TEH_handler_management_post_wire_fees (
NULL);
}
- qs = TEH_DB_run_transaction (connection,
- "add wire fee",
- &ret,
- &add_fee,
- &afc);
- if (qs < 0)
- return ret;
+ {
+ enum GNUNET_GenericReturnValue res;
+ MHD_RESULT ret;
+
+ res = TEH_DB_run_transaction (connection,
+ "add wire fee",
+ &ret,
+ &add_fee,
+ &afc);
+ if (GNUNET_SYSERR == res)
+ return ret;
+ }
TEH_wire_update_state ();
return TALER_MHD_reply_static (
connection,