commit 1467d4c6b54b7e6a6243da67275c79247e6b5beb
parent 69c67e844b79461db05e184edc4d96310e75cd93
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 10 Dec 2019 09:39:39 +0100
do not crash
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -1381,7 +1381,11 @@ vend_failure ()
{
struct Refund *r;
- GNUNET_break (NULL != payment_activity);
+ if (NULL == payment_activity)
+ {
+ GNUNET_break (0);
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received MDB vend failure, refunding customer (FIXME: not implemented)\n");
mdb.cmd = &endSession;