aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-11-08 16:08:11 +0100
committerFlorian Dold <florian@dold.me>2024-11-08 16:08:11 +0100
commit17ff6e9e34020171965c91d85a60b223f690ddfb (patch)
treed90810e5bd819569f11d4b7de37bfda9b13f6cf5
parent567b8708310786640caffb69847039e06dd5f37e (diff)
fix return type confusion in kyc-start handler
-rw-r--r--src/exchange/taler-exchange-httpd_kyc-start.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-start.c b/src/exchange/taler-exchange-httpd_kyc-start.c
index 7c032746e..7082c0b4d 100644
--- a/src/exchange/taler-exchange-httpd_kyc-start.c
+++ b/src/exchange/taler-exchange-httpd_kyc-start.c
@@ -425,9 +425,9 @@ TEH_handler_kyc_start (
&kyp->redirect_url);
if (qs < 0)
{
- if (GNUNET_DB_STATUS_SOFT_ERROR == qs)
- return qs;
GNUNET_break (0);
+ /* Simple query, never should be a soft error. */
+ GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs);
return TALER_MHD_reply_with_error (
rc->connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,