summaryrefslogtreecommitdiff
path: root/src/dns/dnsstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/dnsstub.c')
-rw-r--r--src/dns/dnsstub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns/dnsstub.c b/src/dns/dnsstub.c
index e494d24a2..51d6c2c21 100644
--- a/src/dns/dnsstub.c
+++ b/src/dns/dnsstub.c
@@ -530,7 +530,7 @@ GNUNET_DNSSTUB_start (const char *dns_ip)
{
struct GNUNET_DNSSTUB_Context *ctx;
- ctx = GNUNET_malloc (sizeof (struct GNUNET_DNSSTUB_Context));
+ ctx = GNUNET_new (struct GNUNET_DNSSTUB_Context);
if (NULL != dns_ip)
ctx->dns_exit = GNUNET_strdup (dns_ip);
return ctx;