summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-06 04:32:15 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-06 04:32:15 +0200
commit684df5daf98dfe98b7e5faeefea8bee589a268a4 (patch)
treeb30c468e74391ff85e2c2ce266a6720b4b9b9569 /src
parentc2e682c75378b000ad75c91342b0d459edfb2720 (diff)
save nick 0-term byte
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c6
-rw-r--r--src/gns/plugin_gnsrecord_gns.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 41b04e1ae..52d850064 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2165,12 +2165,6 @@ handle_gns_resolution_result (void *cls,
const char *nick;
nick = rd[i].data;
- if ((rd[i].data_size > 0) &&
- (nick[rd[i].data_size - 1] != '\0'))
- {
- GNUNET_break_op (0);
- break;
- }
break;
}
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index 3ea282fdf..e0bc4fb0c 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -175,7 +175,7 @@ gns_string_to_value (void *cls,
case GNUNET_GNSRECORD_TYPE_NICK:
*data = GNUNET_strdup (s);
- *data_size = strlen (s) + 1; //Store 0-terminator
+ *data_size = strlen (s);
return GNUNET_OK;
case GNUNET_GNSRECORD_TYPE_LEHO: