aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-07 21:55:07 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-07 21:55:07 +0100
commita8b683fe3f1373972eaf6916913896161c1c4fe1 (patch)
tree7945fa59099b9c3af40cf6c50d45308b59f03d0d
parentb79457cec6acd45e4f5b37712643743b263f8e41 (diff)
only one helper must be OK
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index f3d7e60d3..718facf5e 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -3117,14 +3117,8 @@ TEH_keys_management_get_keys_handler (const struct TEH_RequestHandler *rh,
.signkeys = json_array ()
};
- if (GNUNET_is_zero (&denom_rsa_sm_pub))
- {
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_GATEWAY,
- TALER_EC_EXCHANGE_DENOMINATION_HELPER_UNAVAILABLE,
- NULL);
- }
- if (GNUNET_is_zero (&denom_cs_sm_pub))
+ if ( (GNUNET_is_zero (&denom_rsa_sm_pub)) &&
+ (GNUNET_is_zero (&denom_cs_sm_pub)) )
{
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_GATEWAY,