summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-12-22 00:25:10 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-12-22 00:25:10 +0100
commitc9da7a0f7e269a4432e99430ea9deb9af21e825e (patch)
tree62ad425588dd50950086a985a405ee026c477ef0 /src/exchange/taler-exchange-httpd_db.c
parent76a8b46aabb0481c23e98cdc9dc5920ccc9e34fe (diff)
downloadexchange-c9da7a0f7e269a4432e99430ea9deb9af21e825e.tar.gz
exchange-c9da7a0f7e269a4432e99430ea9deb9af21e825e.tar.bz2
exchange-c9da7a0f7e269a4432e99430ea9deb9af21e825e.zip
-added GNUNET_break for rare case
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 1c11a02fb..6fec3fee4 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -67,20 +67,21 @@ TEH_make_coin_known (const struct TALER_CoinPublicInfo *coin,
/* The exchange has a seen this coin before, but with a different denomination.
* Get the corresponding signature and sent it to the client as proof */
{
- struct conflict
+ struct
{
struct TALER_DenominationPublicKey pub;
struct TALER_DenominationSignature sig;
- } conflict = {0};
+ } prev_denom = {0};
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
TEH_plugin->get_signature_for_known_coin (TEH_plugin->cls,
&coin->coin_pub,
- &conflict.pub,
- &conflict.sig))
+ &prev_denom.pub,
+ &prev_denom.sig))
{
/* There _should_ have been a result, because
* we ended here due to a conflict! */
+ GNUNET_break (0);
*mhd_ret = TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_FETCH_FAILED,
@@ -92,8 +93,8 @@ TEH_make_coin_known (const struct TALER_CoinPublicInfo *coin,
connection,
TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY,
&coin->coin_pub,
- &conflict.pub,
- &conflict.sig);
+ &prev_denom.pub,
+ &prev_denom.sig);
return GNUNET_DB_STATUS_HARD_ERROR;
}