summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_wire_disable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_wire_disable.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_wire_disable.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_wire_disable.c b/src/exchange/taler-exchange-httpd_management_wire_disable.c
index 67cf3015..0d446bca 100644
--- a/src/exchange/taler-exchange-httpd_management_wire_disable.c
+++ b/src/exchange/taler-exchange-httpd_management_wire_disable.c
@@ -148,8 +148,6 @@ TEH_handler_management_denominations_wire_disable (
&awc.validity_end),
GNUNET_JSON_spec_end ()
};
- enum GNUNET_DB_QueryStatus qs;
- MHD_RESULT ret;
{
enum GNUNET_GenericReturnValue res;
@@ -176,13 +174,19 @@ TEH_handler_management_denominations_wire_disable (
TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID,
NULL);
}
- qs = TEH_DB_run_transaction (connection,
- "del wire",
- &ret,
- &del_wire,
- &awc);
- if (qs < 0)
- return ret;
+
+ {
+ enum GNUNET_GenericReturnValue res;
+ MHD_RESULT ret;
+
+ res = TEH_DB_run_transaction (connection,
+ "del wire",
+ &ret,
+ &del_wire,
+ &awc);
+ if (GNUNET_SYSERR == res)
+ return ret;
+ }
TEH_wire_update_state ();
return TALER_MHD_reply_static (
connection,