aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c1
-rw-r--r--src/namestore/namestore_common.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 96b426950..d879603b4 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1755,6 +1755,7 @@ resolve_record_dns (struct ResolverHandle *rh,
1755 struct RecordLookupHandle *rlh = rh->proc_cls; 1755 struct RecordLookupHandle *rlh = rh->proc_cls;
1756 1756
1757 memset (&packet, 0, sizeof (struct GNUNET_DNSPARSER_Packet)); 1757 memset (&packet, 0, sizeof (struct GNUNET_DNSPARSER_Packet));
1758 memset (rh->dns_name, 0, sizeof (rh->dns_name));
1758 1759
1759 /* We cancel here as to not include the ns lookup in the timeout */ 1760 /* We cancel here as to not include the ns lookup in the timeout */
1760 if (GNUNET_SCHEDULER_NO_TASK != rh->timeout_task) 1761 if (GNUNET_SCHEDULER_NO_TASK != rh->timeout_task)
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c
index afbaf2fc3..06099a1c5 100644
--- a/src/namestore/namestore_common.c
+++ b/src/namestore/namestore_common.c
@@ -374,9 +374,9 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
374 return NULL; 374 return NULL;
375 return GNUNET_strdup (tmp); 375 return GNUNET_strdup (tmp);
376 case GNUNET_DNSPARSER_TYPE_NS: 376 case GNUNET_DNSPARSER_TYPE_NS:
377 return GNUNET_strndup (data, data_size); 377 return GNUNET_strndup (data);
378 case GNUNET_DNSPARSER_TYPE_CNAME: 378 case GNUNET_DNSPARSER_TYPE_CNAME:
379 return GNUNET_strndup (data, data_size); 379 return GNUNET_strndup (data);
380 case GNUNET_DNSPARSER_TYPE_SOA: 380 case GNUNET_DNSPARSER_TYPE_SOA:
381 soa = (struct soa_data*)data; 381 soa = (struct soa_data*)data;
382 soa_rname = (char*)&soa[1]; 382 soa_rname = (char*)&soa[1];