gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix potential NPE


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix potential NPE
Date: Sun, 08 Jan 2017 20:10:04 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 869b3a7fe fix potential NPE
869b3a7fe is described below

commit 869b3a7feb1e130a374540526f24107ded7fb1f9
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jan 8 20:09:59 2017 +0100

    fix potential NPE
---
 src/nat/nat_api.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c
index 826dbd57a..5b4c39682 100644
--- a/src/nat/nat_api.c
+++ b/src/nat/nat_api.c
@@ -709,7 +709,11 @@ GNUNET_NAT_request_reversal (struct GNUNET_NAT_Handle *nh,
 void
 GNUNET_NAT_unregister (struct GNUNET_NAT_Handle *nh)
 {
-  GNUNET_MQ_destroy (nh->mq);
+  if (NULL != nh->mq)
+  {
+    GNUNET_MQ_destroy (nh->mq);
+    nh->mq = NULL;
+  }
   GNUNET_free (nh->reg);
   GNUNET_free (nh);
 }

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



reply via email to

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