commit 030de55b4925e6f71e47f9c5962bfbbf4138d577
parent 4aca5deafe59c978d968b3ff26d7568f2157764c
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 26 May 2026 23:36:49 +0200
fix #11428
Diffstat:
2 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_get-kyc-check-H_NORMALIZED_PAYTO.c b/src/exchange/taler-exchange-httpd_get-kyc-check-H_NORMALIZED_PAYTO.c
@@ -475,11 +475,6 @@ TEH_handler_kyc_check (
: ( (GNUNET_YES == is_wallet)
? "wallet"
: "account"));
- if (NULL != jrules)
- json_dumpf (jrules,
- stderr,
- JSON_INDENT (2));
-
jlimits = TALER_KYCLOGIC_rules_to_limits (jrules,
is_wallet);
if (NULL == jlimits)
@@ -497,12 +492,6 @@ TEH_handler_kyc_check (
jrules = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "KYC limits apply:\n");
- json_dumpf (jlimits,
- stderr,
- JSON_INDENT (2));
-
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Returning KYC %s\n",
kyc_required ? "required" : "optional");
return TALER_MHD_REPLY_JSON_PACK (
diff --git a/src/exchangedb/lookup_kyc_requirement_by_row.sql b/src/exchangedb/lookup_kyc_requirement_by_row.sql
@@ -55,7 +55,7 @@ THEN
END IF;
-- It is definitively OK if we were given a public key AND it matches
-my_ok = (my_wtrec.target_pub = in_account_pub);
+my_ok = COALESCE(my_wtrec.target_pub = in_account_pub, FALSE);
IF (NOT my_ok)
THEN