summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_wire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_wire.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_wire.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_wire.c b/src/exchange/taler-exchange-httpd_management_wire.c
index 83c3bbed..e3a31c1e 100644
--- a/src/exchange/taler-exchange-httpd_management_wire.c
+++ b/src/exchange/taler-exchange-httpd_management_wire.c
@@ -156,8 +156,6 @@ TEH_handler_management_denominations_wire (
&awc.validity_start),
GNUNET_JSON_spec_end ()
};
- enum GNUNET_DB_QueryStatus qs;
- MHD_RESULT ret;
{
enum GNUNET_GenericReturnValue res;
@@ -213,13 +211,18 @@ TEH_handler_management_denominations_wire (
GNUNET_free (wire_method);
}
- qs = TEH_DB_run_transaction (connection,
- "add wire",
- &ret,
- &add_wire,
- &awc);
- if (qs < 0)
- return ret;
+ {
+ enum GNUNET_GenericReturnValue res;
+ MHD_RESULT ret;
+
+ res = TEH_DB_run_transaction (connection,
+ "add wire",
+ &ret,
+ &add_wire,
+ &awc);
+ if (GNUNET_SYSERR == res)
+ return ret;
+ }
TEH_wire_update_state ();
return TALER_MHD_reply_static (
connection,