aboutsummaryrefslogtreecommitdiff
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)
530{ 530{
531 struct GNUNET_DNSSTUB_Context *ctx; 531 struct GNUNET_DNSSTUB_Context *ctx;
532 532
533 ctx = GNUNET_malloc (sizeof (struct GNUNET_DNSSTUB_Context)); 533 ctx = GNUNET_new (struct GNUNET_DNSSTUB_Context);
534 if (NULL != dns_ip) 534 if (NULL != dns_ip)
535 ctx->dns_exit = GNUNET_strdup (dns_ip); 535 ctx->dns_exit = GNUNET_strdup (dns_ip);
536 return ctx; 536 return ctx;