summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 14:49:29 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-16 14:49:29 +0000
commit4196cd3056bf6def859cdeba316cc8f5f19db05c (patch)
tree9b369cb42e86bd16b8f7a05b2cf3975fca0641f1 /src
parent4526a7d87efdf2e0a6024d7ee225a8cb93e73160 (diff)
-fix
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c4
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,
GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
"Trying delegated name %s\n", gph->name);
- gph->new_name = gph->name;
+ GNUNET_free(gph->new_name);
+ gph->new_name = GNUNET_malloc(strlen(gph->name)+1);
+ memcpy(gph->new_name, gph->name, strlen(gph->name)+1);
GNUNET_NAMESTORE_lookup_record(namestore_handle,
&gph->zone,
gph->new_name,