gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-mdb] 21/23: fix NPE


From: gnunet
Subject: [taler-taler-mdb] 21/23: fix NPE
Date: Wed, 04 Dec 2019 14:16:07 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-mdb.

commit 0048accceb87c7842ccd80d4ea460e7708f84383
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 4 13:46:38 2019 +0100

    fix NPE
---
 src/main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index fe47ced..8f0831a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1436,8 +1436,11 @@ handle_command (const char *hex,
                       "Received MDB session complete\n");
           mdb.session_running = GNUNET_NO;
           mdb.cmd = &endSession;
-          cleanup_payment (payment_activity);
-          payment_activity = NULL;
+          if (NULL != payment_activity)
+          {
+            cleanup_payment (payment_activity);
+            payment_activity = NULL;
+          }
         }
         break;
       default:

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]