fix segfault

This commit is contained in:
MS 2020-07-27 14:03:11 +02:00
parent 680b671b29
commit 6fd44ff2ea
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -132,7 +132,7 @@ do_shutdown (void *cls)
TALER_BANK_debit_history_cancel (dhh);
dhh = NULL;
}
if (NULL != eh)
if ( (NULL != eh) && (0 != global_ret))
{
TALER_BANK_transfer_cancel (eh);
eh = NULL;