diff options
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 41c2c0de0..d79817293 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -93,7 +93,9 @@ process_pseu_lookup_ns(void* cls, | |||
93 | 93 | ||
94 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | 94 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, |
95 | "Trying delegated name %s\n", gph->name); | 95 | "Trying delegated name %s\n", gph->name); |
96 | gph->new_name = gph->name; | 96 | GNUNET_free(gph->new_name); |
97 | gph->new_name = GNUNET_malloc(strlen(gph->name)+1); | ||
98 | memcpy(gph->new_name, gph->name, strlen(gph->name)+1); | ||
97 | GNUNET_NAMESTORE_lookup_record(namestore_handle, | 99 | GNUNET_NAMESTORE_lookup_record(namestore_handle, |
98 | &gph->zone, | 100 | &gph->zone, |
99 | gph->new_name, | 101 | gph->new_name, |