exchange

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

commit e8e1073813f07f61e65959dfffc280bc5beeffde
parent fdc282dcef5ebfee0991a6338992f12cacf26e6e
Author: Sebastian <sebasjm@gmail.com>
Date:   Wed, 21 Aug 2024 11:20:01 -0300

fix crash: provider name can be null from taler-exchange-httpd_common_kyc.c:774

Diffstat:
Msrc/exchangedb/pg_insert_kyc_failure.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/exchangedb/pg_insert_kyc_failure.c b/src/exchangedb/pg_insert_kyc_failure.c @@ -43,7 +43,9 @@ TEH_PG_insert_kyc_failure ( struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&process_row), GNUNET_PQ_query_param_auto_from_type (h_payto), - GNUNET_PQ_query_param_string (provider_name), + NULL != provider_name + ? GNUNET_PQ_query_param_string (provider_name) + : GNUNET_PQ_query_param_null (), NULL != provider_account_id ? GNUNET_PQ_query_param_string (provider_account_id) : GNUNET_PQ_query_param_null (),