diff options
| author | Christian Grothoff <christian@grothoff.org> | 2021-06-22 14:47:54 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2021-06-22 14:47:54 +0200 | 
| commit | ba5af82db137c465a84e44b85aeb7aa6fed0c957 (patch) | |
| tree | 00d85da80f5c9f1b64afccc13ae3feb089aae2a9 /src/bank-lib | |
| parent | 0caf3ac2b7716b55da43b492d0a24e33694724c5 (diff) | |
-bugfixes, and FTBFS
Diffstat (limited to 'src/bank-lib')
| -rw-r--r-- | src/bank-lib/fakebank.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index f656c878..7dbf7df5 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)); | 
