summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch')
-rw-r--r--net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch b/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch
deleted file mode 100644
index 5e666af21ec8..000000000000
--- a/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-diff -Naur GNUnet-0.7.0d.orig/src/transports/udp.c GNUnet-0.7.0d/src/transports/udp.c
---- GNUnet-0.7.0d.orig/src/transports/udp.c 2006-03-12 01:04:29.000000000 -0600
-+++ GNUnet-0.7.0d/src/transports/udp.c 2006-05-13 23:17:45.000000000 -0500
-@@ -247,7 +247,21 @@
- }
- if (pending <= 0) {
- LOG(LOG_WARNING,
-- _("UDP: select returned, but ioctl reports 0 bytes available!\n"));
-+ _("UDP: select returned, but ioctl reports %d bytes available!\n"),
-+ pending);
-+ if (pending == 0) {
-+ /* maybe empty UDP packet was sent (see report on bug-gnunet,
-+ 5/11/6; read 0 bytes from UDP just to kill potential empty packet! */
-+ memset(&incoming,
-+ 0,
-+ sizeof(struct sockaddr_in));
-+ RECVFROM(udp_sock,
-+ NULL,
-+ 0,
-+ 0,
-+ (struct sockaddr * )&incoming,
-+ &addrlen);
-+ }
- continue;
- }
- if (pending >= 65536) {
-diff -Naur GNUnet-0.7.0d.orig/src/transports/udp6.c GNUnet-0.7.0d/src/transports/udp6.c
---- GNUnet-0.7.0d.orig/src/transports/udp6.c 2006-03-11 15:32:00.000000000 -0600
-+++ GNUnet-0.7.0d/src/transports/udp6.c 2006-05-13 23:17:45.000000000 -0500
-@@ -230,6 +230,25 @@
- LOG_STRERROR(LOG_ERROR, "ioctl");
- continue;
- }
-+ if (pending <= 0) {
-+ LOG(LOG_WARNING,
-+ _("UDP6: select returned, but ioctl reports %d bytes available!\n"),
-+ pending);
-+ if (pending == 0) {
-+ /* maybe empty UDP packet was sent (see report on bug-gnunet,
-+ 5/11/6; read 0 bytes from UDP just to kill potential empty packet! */
-+ memset(&incoming,
-+ 0,
-+ sizeof(struct sockaddr_in6));
-+ RECVFROM(udp6_sock,
-+ NULL,
-+ 0,
-+ 0,
-+ (struct sockaddr * )&incoming,
-+ &addrlen);
-+ }
-+ continue;
-+ }
- if (pending >= 65536) {
- BREAK();
- continue;