From 88c39e0eb9748da2d96b99342747f8270c52216a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Dec 2016 08:06:25 +0100 Subject: [PATCH] need to strdup as this will be freed --- src/nat/gnunet-service-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c index 10bfd07a4..235ca9389 100644 --- a/src/nat/gnunet-service-nat.c +++ b/src/nat/gnunet-service-nat.c @@ -1399,7 +1399,7 @@ handle_autoconfig_request (void *cls, "PEER", "SYSTEM_TYPE", &ac->system_type)) - ac->system_type = "UNKNOWN"; + ac->system_type = GNUNET_strdup ("UNKNOWN"); GNUNET_CONTAINER_DLL_insert (ac_head, ac_tail, -- 2.25.1