summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-07-27 14:03:11 +0200
committerMS <ms@taler.net>2020-07-27 14:03:11 +0200
commit6fd44ff2ea8f86655ac6450efd88da85b48211cf (patch)
tree1548aabaeec6dfc2efa6c00b9bb082a322820051
parent680b671b298201809e89592f761e92c393757058 (diff)
downloadexchange-6fd44ff2ea8f86655ac6450efd88da85b48211cf.tar.gz
exchange-6fd44ff2ea8f86655ac6450efd88da85b48211cf.tar.bz2
exchange-6fd44ff2ea8f86655ac6450efd88da85b48211cf.zip
fix segfault
-rw-r--r--src/bank-lib/taler-bank-transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bank-lib/taler-bank-transfer.c b/src/bank-lib/taler-bank-transfer.c
index f3b39337..9065122d 100644
--- a/src/bank-lib/taler-bank-transfer.c
+++ b/src/bank-lib/taler-bank-transfer.c
@@ -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;