[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/02: fix free of statically allocated value
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/02: fix free of statically allocated value |
Date: |
Sat, 07 Jan 2017 13:05:34 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 76b387ae68024934ccd92daa34659ada17dc3955
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 7 12:50:50 2017 +0100
fix free of statically allocated value
---
src/nat/gnunet-nat.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/nat/gnunet-nat.c b/src/nat/gnunet-nat.c
index 07ddfb6..f198adc 100644
--- a/src/nat/gnunet-nat.c
+++ b/src/nat/gnunet-nat.c
@@ -37,7 +37,7 @@ static int global_ret;
* Name of section in configuration file to use for
* additional options.
*/
-static char *section_name = "undefined";
+static char *section_name;
/**
* Flag set to 1 if we use IPPROTO_UDP.
@@ -300,6 +300,8 @@ run (void *cls,
if (NULL != local_addr)
{
+ if (NULL == section_name)
+ section_name = GNUNET_strdup ("undefined");
nh = GNUNET_NAT_register (c,
section_name,
proto,
--
To stop receiving notification emails like this one, please contact
address@hidden