diff options
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index d3f27dec4..04fac9cde 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1906,7 +1906,7 @@ tcp_plugin_address_pretty_printer (void *cls, const char *type, | |||
1906 | asc (asc_cls, NULL); | 1906 | asc (asc_cls, NULL); |
1907 | return; | 1907 | return; |
1908 | } | 1908 | } |
1909 | ppc = GNUNET_malloc (sizeof (struct PrettyPrinterContext)); | 1909 | ppc = GNUNET_new (struct PrettyPrinterContext); |
1910 | if (addrlen == sizeof (struct IPv6TcpAddress)) | 1910 | if (addrlen == sizeof (struct IPv6TcpAddress)) |
1911 | ppc->ipv6 = GNUNET_YES; | 1911 | ppc->ipv6 = GNUNET_YES; |
1912 | else | 1912 | else |
@@ -2524,7 +2524,7 @@ try_connection_reversal (void *cls, const struct sockaddr *addr, | |||
2524 | 2524 | ||
2525 | /* FIXME: do we need to track these probe context objects so that | 2525 | /* FIXME: do we need to track these probe context objects so that |
2526 | * we can clean them up on plugin unload? */ | 2526 | * we can clean them up on plugin unload? */ |
2527 | tcp_probe_ctx = GNUNET_malloc (sizeof (struct TCPProbeContext)); | 2527 | tcp_probe_ctx = GNUNET_new (struct TCPProbeContext); |
2528 | tcp_probe_ctx->message.header.size = | 2528 | tcp_probe_ctx->message.header.size = |
2529 | htons (sizeof (struct TCP_NAT_ProbeMessage)); | 2529 | htons (sizeof (struct TCP_NAT_ProbeMessage)); |
2530 | tcp_probe_ctx->message.header.type = | 2530 | tcp_probe_ctx->message.header.type = |