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_withdraw.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_withdraw.c') diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index 68a8e5fd0..5833fcf48 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -379,20 +379,16 @@ TEH_handler_withdraw (const struct TEH_RequestHandler *rh, return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; } { - unsigned int hc; - enum TALER_ErrorCode ec; + MHD_RESULT mret; struct GNUNET_TIME_Absolute now; dk = TEH_keys_denomination_by_hash (&wc.denom_pub_hash, - &ec, - &hc); + connection, + &mret); if (NULL == dk) { 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_withdraw.abs_value_us) -- cgit v1.2.3