nick must be 0-terminated else resolver will discard/break
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 5 Oct 2019 20:45:42 +0000 (22:45 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 5 Oct 2019 20:45:42 +0000 (22:45 +0200)
src/gns/plugin_gnsrecord_gns.c

index e0bc4fb0c1371c7dfc6b73520706641ae2414dd1..3ea282fdf03b72ef1ee48d0da27cd73fb47e6ed8 100644 (file)
@@ -175,7 +175,7 @@ gns_string_to_value (void *cls,
 
   case GNUNET_GNSRECORD_TYPE_NICK:
     *data = GNUNET_strdup (s);
-    *data_size = strlen (s);
+    *data_size = strlen (s) + 1; //Store 0-terminator
     return GNUNET_OK;
 
   case GNUNET_GNSRECORD_TYPE_LEHO: