freebsd-ports/net/gnunet/files/patch-src_transports_udp6.c
Kirill Ponomarev 95e23217c4 Fix build
Installs sample gnunet-conf
Installs some documentation

PR:		ports/72299
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
2004-10-12 15:10:08 +00:00

21 lines
599 B
C

$FreeBSD$
--- src/transports/udp6.c.orig Fri Oct 1 01:38:25 2004
+++ src/transports/udp6.c Fri Oct 1 01:39:15 2004
@@ -275,6 +275,7 @@
#endif
/* quick test of the packet, if failed, repeat! */
if (size != ntohs(udp6m.size)) {
+ char * tmp = MALLOC(INET6_ADDRSTRLEN);
LOG(LOG_WARNING,
_("Packed received from %s:%d (UDP6) failed format check."),
inet_ntop(AF_INET6,
@@ -282,6 +283,7 @@
tmp,
INET6_ADDRSTRLEN),
ntohs(incoming.sin6_port));
+ FREE(tmp);
goto RETRY;
}
GNUNET_ASSERT(sizeof(struct in6_addr) == sizeof(IP6addr));