aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-09-09 20:32:10 +0200
committerChristian Grothoff <christian@grothoff.org>2024-09-09 20:32:10 +0200
commit9129297e56763ae2941ee8e52cd3f96a5b880b02 (patch)
tree8649ade7b2afa4615c839655fb0605c597fb6cee
parentfd6e459cc7fcad3703c993e812f25a09e1ca9d36 (diff)
-fix all-zeros access_token issue
-rw-r--r--src/backend/taler-merchant-kyccheck.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-kyccheck.c b/src/backend/taler-merchant-kyccheck.c
index f001285c..2ff290d3 100644
--- a/src/backend/taler-merchant-kyccheck.c
+++ b/src/backend/taler-merchant-kyccheck.c
@@ -440,7 +440,9 @@ store_kyc_status (
jlimits);
}
i->jlimits = jlimits;
+ GNUNET_break (! GNUNET_is_zero (&account_kyc_status->access_token));
i->access_token = account_kyc_status->access_token;
+ i->auth_ok = true;
i->aml_review = account_kyc_status->aml_review;
i->kyc_ok = (MHD_HTTP_OK == i->last_http_status);
}
@@ -564,7 +566,9 @@ exchange_check_cb (
i->last_kyc_check,
i->last_http_status,
i->last_ec,
- &i->access_token,
+ (i->auth_ok)
+ ? &i->access_token
+ : NULL,
i->jlimits,
i->aml_review,
i->kyc_ok);