From 17ff6e9e34020171965c91d85a60b223f690ddfb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 8 Nov 2024 16:08:11 +0100 Subject: fix return type confusion in kyc-start handler --- src/exchange/taler-exchange-httpd_kyc-start.c | 4 ++-- 1 file 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, -- cgit v1.2.3