From 0d1ab614c06f60f79de75a0f2ec30c33a69820dd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 May 2021 20:52:58 +0200 Subject: return signed 404 statements for unknown denomination key hashes (#6889) --- src/exchange/taler-exchange-httpd_deposit.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_deposit.c') diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 2f7d49c93..44c3d14cf 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -431,21 +431,16 @@ TEH_handler_deposit (struct MHD_Connection *connection, /* check denomination exists and is valid */ { struct TEH_DenominationKey *dk; - enum TALER_ErrorCode ec; - unsigned int hc; struct GNUNET_TIME_Absolute now; + MHD_RESULT mret; dk = TEH_keys_denomination_by_hash (&deposit.coin.denom_pub_hash, - &ec, - &hc); + connection, + &mret); if (NULL == dk) { - TALER_LOG_DEBUG ("Unknown denomination key in /deposit request\n"); GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - hc, - ec, - NULL); + return mret; } now = GNUNET_TIME_absolute_get (); if (now.abs_value_us >= dk->meta.expire_deposit.abs_value_us) -- cgit v1.2.3