projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
-indentation
[oweals/gnunet.git]
/
src
/
nat
/
gnunet-nat-server.c
diff --git
a/src/nat/gnunet-nat-server.c
b/src/nat/gnunet-nat-server.c
index 1a98cdc9628f1f871dc98a41bd91b47f8e0907e7..82e39ee16568da59d95db8e05a6c7da12556c345 100644
(file)
--- a/
src/nat/gnunet-nat-server.c
+++ b/
src/nat/gnunet-nat-server.c
@@
-152,7
+152,7
@@
try_send_tcp (uint32_t dst_ipv4, uint16_t dport, uint16_t data)
GNUNET_NETWORK_socket_close (s);
return;
}
- ctx = GNUNET_
malloc (sizeof (struct TcpContext)
);
+ ctx = GNUNET_
new (struct TcpContext
);
ctx->s = s;
ctx->data = data;
GNUNET_SCHEDULER_add_write_net (GNUNET_TIME_UNIT_SECONDS, s, &tcp_send, ctx);