aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat_mini.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/nat_mini.c')
-rw-r--r--src/nat/nat_mini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c
index dd1aede5e..497371e86 100644
--- a/src/nat/nat_mini.c
+++ b/src/nat/nat_mini.c
@@ -172,7 +172,7 @@ GNUNET_NAT_mini_get_external_ipv4 (struct GNUNET_TIME_Relative timeout,
172 } 172 }
173 LOG (GNUNET_ERROR_TYPE_DEBUG, 173 LOG (GNUNET_ERROR_TYPE_DEBUG,
174 "Running `external-ip' to determine our external IP\n"); 174 "Running `external-ip' to determine our external IP\n");
175 eh = GNUNET_malloc (sizeof (struct GNUNET_NAT_ExternalHandle)); 175 eh = GNUNET_new (struct GNUNET_NAT_ExternalHandle);
176 eh->cb = cb; 176 eh->cb = cb;
177 eh->cb_cls = cb_cls; 177 eh->cb_cls = cb_cls;
178 eh->opipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES); 178 eh->opipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES);
@@ -507,7 +507,7 @@ GNUNET_NAT_mini_map_start (uint16_t port, int is_tcp,
507 } 507 }
508 LOG (GNUNET_ERROR_TYPE_DEBUG, 508 LOG (GNUNET_ERROR_TYPE_DEBUG,
509 "Running `upnpc' to install mapping\n"); 509 "Running `upnpc' to install mapping\n");
510 ret = GNUNET_malloc (sizeof (struct GNUNET_NAT_MiniHandle)); 510 ret = GNUNET_new (struct GNUNET_NAT_MiniHandle);
511 ret->ac = ac; 511 ret->ac = ac;
512 ret->ac_cls = ac_cls; 512 ret->ac_cls = ac_cls;
513 ret->is_tcp = is_tcp; 513 ret->is_tcp = is_tcp;