need to strdup as this will be freed
authorChristian Grothoff <christian@grothoff.org>
Sat, 17 Dec 2016 07:06:25 +0000 (08:06 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 17 Dec 2016 07:06:25 +0000 (08:06 +0100)
src/nat/gnunet-service-nat.c

index 10bfd07a45a6b3c2328acbbf892b4cd4f536c964..235ca9389e2158a1f72b42697ee01ecea7f76dbf 100644 (file)
@@ -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,