From ba5af82db137c465a84e44b85aeb7aa6fed0c957 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 22 Jun 2021 14:47:54 +0200 Subject: -bugfixes, and FTBFS --- src/bank-lib/fakebank.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bank-lib/fakebank.c') diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index f656c878d..7dbf7df5d 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -1403,7 +1403,8 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h, { struct Transaction *t = h->transactions[ha.start_idx % h->ram_limit]; - if (NULL == t) + if ( (NULL == t) || + (t->row_id != ha.start_idx) ) { GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); @@ -1524,7 +1525,8 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h, { struct Transaction *t = h->transactions[ha.start_idx % h->ram_limit]; - if (NULL == t) + if ( (NULL == t) || + (t->row_id != ha.start_idx) ) { GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); -- cgit v1.2.3