summaryrefslogtreecommitdiff
path: root/src/gnsrecord/plugin_gnsrecord_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnsrecord/plugin_gnsrecord_dns.c')
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c
index 4f010dc42..362acbf87 100644
--- a/src/gnsrecord/plugin_gnsrecord_dns.c
+++ b/src/gnsrecord/plugin_gnsrecord_dns.c
@@ -294,7 +294,7 @@ dns_string_to_value (void *cls,
s);
return GNUNET_SYSERR;
}
- *data = GNUNET_malloc (sizeof (struct in_addr));
+ *data = GNUNET_new (struct in_addr);
memcpy (*data, &value_a, sizeof (value_a));
*data_size = sizeof (value_a);
return GNUNET_OK;
@@ -550,7 +550,7 @@ dns_string_to_value (void *cls,
s);
return GNUNET_SYSERR;
}
- *data = GNUNET_malloc (sizeof (struct in6_addr));
+ *data = GNUNET_new (struct in6_addr);
*data_size = sizeof (struct in6_addr);
memcpy (*data, &value_aaaa, sizeof (value_aaaa));
return GNUNET_OK;