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_refund.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_refund.c') diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c index ace6e28f4..56d987d94 100644 --- a/src/exchange/taler-exchange-httpd_refund.c +++ b/src/exchange/taler-exchange-httpd_refund.c @@ -449,21 +449,17 @@ verify_and_execute_refund (struct MHD_Connection *connection, { /* Obtain information about the coin's denomination! */ struct TEH_DenominationKey *dk; - unsigned int hc; - enum TALER_ErrorCode ec; + MHD_RESULT mret; dk = TEH_keys_denomination_by_hash (&denom_hash, - &ec, - &hc); + connection, + &mret); if (NULL == dk) { /* DKI not found, but we do have a coin with this DK in our database; not good... */ GNUNET_break (0); - return TALER_MHD_reply_with_error (connection, - hc, - ec, - NULL); + return mret; } if (GNUNET_TIME_absolute_get ().abs_value_us >= -- cgit v1.2.3