exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit b18069097c798f5bf53d71ea8b4e5f9ea329dfa3
parent 4dedd235d2ba42815c98f336d1be01283bc7c983
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 20 Nov 2024 23:58:46 +0100

fix bad hard error log (for #9339)

Diffstat:
Msrc/exchange/taler-exchange-httpd_kyc-info.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-info.c b/src/exchange/taler-exchange-httpd_kyc-info.c @@ -602,6 +602,7 @@ TEH_handler_kyc_info ( /* Get rules. */ { json_t *jnew_rules; + qs = TEH_plugin->lookup_rules_by_access_token ( TEH_plugin->cls, &kyp->h_payto, @@ -616,13 +617,9 @@ TEH_handler_kyc_info ( "lookup_rules_by_access_token"); goto cleanup; } - if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) - { - /* Nothing was triggered, return the measures - that apply for any amount. */ - lrs = NULL; - } - else + lrs = NULL; + if ( (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs) && + (NULL != jnew_rules) ) { lrs = TALER_KYCLOGIC_rules_parse (jnew_rules); GNUNET_break (NULL != lrs);