diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_reserve_withdraw.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserve_withdraw.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c b/src/exchange/taler-exchange-httpd_reserve_withdraw.c index 1199ed67d..578aace31 100644 --- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c +++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c | |||
@@ -365,6 +365,8 @@ TEH_RESERVE_handler_reserve_withdraw (struct TEH_RequestHandler *rh, | |||
365 | json_t *root; | 365 | json_t *root; |
366 | int res; | 366 | int res; |
367 | int mhd_ret; | 367 | int mhd_ret; |
368 | unsigned int hc; | ||
369 | enum TALER_ErrorCode ec; | ||
368 | struct TALER_Amount amount; | 370 | struct TALER_Amount amount; |
369 | struct TALER_Amount fee_withdraw; | 371 | struct TALER_Amount fee_withdraw; |
370 | struct GNUNET_JSON_Specification spec[] = { | 372 | struct GNUNET_JSON_Specification spec[] = { |
@@ -407,14 +409,16 @@ TEH_RESERVE_handler_reserve_withdraw (struct TEH_RequestHandler *rh, | |||
407 | } | 409 | } |
408 | wc.dki = TEH_KS_denomination_key_lookup_by_hash (wc.key_state, | 410 | wc.dki = TEH_KS_denomination_key_lookup_by_hash (wc.key_state, |
409 | &wc.denom_pub_hash, | 411 | &wc.denom_pub_hash, |
410 | TEH_KS_DKU_WITHDRAW); | 412 | TEH_KS_DKU_WITHDRAW, |
413 | &ec, | ||
414 | &hc); | ||
411 | if (NULL == wc.dki) | 415 | if (NULL == wc.dki) |
412 | { | 416 | { |
413 | GNUNET_JSON_parse_free (spec); | 417 | GNUNET_JSON_parse_free (spec); |
414 | TEH_KS_release (wc.key_state); | 418 | TEH_KS_release (wc.key_state); |
415 | return TEH_RESPONSE_reply_arg_unknown (connection, | 419 | return TEH_RESPONSE_reply_with_error (connection, |
416 | TALER_EC_WITHDRAW_DENOMINATION_KEY_NOT_FOUND, | 420 | ec, |
417 | "denom_pub"); | 421 | hc); |
418 | } | 422 | } |
419 | GNUNET_assert (NULL != wc.dki->denom_priv.rsa_private_key); | 423 | GNUNET_assert (NULL != wc.dki->denom_priv.rsa_private_key); |
420 | TALER_amount_ntoh (&amount, | 424 | TALER_amount_ntoh (&amount, |