exchange

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

commit ae8edabb8d25d473acf8f0319daa6e2d9583726d
parent 3c4336b24ed3cc69c8a66277ab01d89c475678c0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 12 Jul 2026 21:49:19 +0200

add missing NULL check

Diffstat:
Msrc/bank-lib/fakebank_twg_get_transfers_id.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bank-lib/fakebank_twg_get_transfers_id.c b/src/bank-lib/fakebank_twg_get_transfers_id.c @@ -83,7 +83,9 @@ TALER_FAKEBANK_twg_get_transfers_id_ ( struct Transaction *t = h->transactions[row_id % h->ram_limit]; char *credit_payto; - if (t->debit_account != acc) + if ( (NULL == t) || + (t->row_id != row_id) || + (t->debit_account != acc) ) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid ID specified, transaction %llu not with account %s!\n",