diff options
author | alepulver <alepulver@FreeBSD.org> | 2007-01-13 11:09:20 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2007-01-13 11:09:20 +0800 |
commit | 3d6007de72988891b952629cb35bbff9b37af05d (patch) | |
tree | d75bfff87fa352174f9897b07fc9f4a8a1b98273 /games/r1q2 | |
parent | 58846825a603d2e7134421fb645ba9beaddef984 (diff) | |
download | freebsd-ports-gnome-3d6007de72988891b952629cb35bbff9b37af05d.tar.gz freebsd-ports-gnome-3d6007de72988891b952629cb35bbff9b37af05d.tar.zst freebsd-ports-gnome-3d6007de72988891b952629cb35bbff9b37af05d.zip |
- Update to version 6974.
- Fix security vulnerability in the new icmp error handling code (does not
affect FreeBSD since that code is Linux specific and was disabled) [1].
Reported by: Steve Crowder <steve@crowders.org>
Security: http://www.r1ch.net/forum/index.php?topic=106.msg6601#msg6601 [1]
Diffstat (limited to 'games/r1q2')
-rw-r--r-- | games/r1q2/Makefile | 2 | ||||
-rw-r--r-- | games/r1q2/distinfo | 6 | ||||
-rw-r--r-- | games/r1q2/files/patch-linux__net_udp.c | 42 |
3 files changed, 27 insertions, 23 deletions
diff --git a/games/r1q2/Makefile b/games/r1q2/Makefile index b1dfe3a6ca14..95adf43e1c6f 100644 --- a/games/r1q2/Makefile +++ b/games/r1q2/Makefile @@ -6,7 +6,7 @@ # PORTNAME= r1q2 -PORTVERSION= 6964 +PORTVERSION= 6974 CATEGORIES= games MASTER_SITES= http://www.r1ch.net/stuff/r1q2/src/ DISTNAME= ${PORTNAME}-b${PORTVERSION}-src diff --git a/games/r1q2/distinfo b/games/r1q2/distinfo index fafb8fc7558d..68e4318155c3 100644 --- a/games/r1q2/distinfo +++ b/games/r1q2/distinfo @@ -1,3 +1,3 @@ -MD5 (r1q2-b6964-src.zip) = 926af18798f4e36c1bf75f94569c1d08 -SHA256 (r1q2-b6964-src.zip) = e4c2764dc07f38295c389c0ab60f362dc024934c667c6d4db03d55204908824c -SIZE (r1q2-b6964-src.zip) = 1120296 +MD5 (r1q2-b6974-src.zip) = 05d208d9969098572aff8dc374a89c7c +SHA256 (r1q2-b6974-src.zip) = 26ae12213779c028971b204b0594697c868d8cf0a758cd1aa8028b0db620fba7 +SIZE (r1q2-b6974-src.zip) = 1121829 diff --git a/games/r1q2/files/patch-linux__net_udp.c b/games/r1q2/files/patch-linux__net_udp.c index 94538d4a97cf..4bd88480b723 100644 --- a/games/r1q2/files/patch-linux__net_udp.c +++ b/games/r1q2/files/patch-linux__net_udp.c @@ -1,5 +1,5 @@ ---- linux/net_udp.c.orig Fri Dec 29 17:10:28 2006 -+++ linux/net_udp.c Fri Dec 29 17:11:42 2006 +--- linux/net_udp.c.orig Fri Jan 12 23:46:14 2007 ++++ linux/net_udp.c Fri Jan 12 23:59:49 2007 @@ -13,8 +13,12 @@ #include <sys/uio.h> #include <errno.h> @@ -13,35 +13,39 @@ #ifdef NeXT #include <libc.h> -@@ -191,6 +195,7 @@ +@@ -187,6 +191,7 @@ - if (err == ECONNREFUSED) - { + if (ret == -1) + { +#ifdef __linux__ - //linux makes this needlessly complex, couldn't just return the source of the error in from, oh no... - struct probehdr rcvbuf; - struct iovec iov; -@@ -243,6 +248,11 @@ + //linux makes this needlessly complex, couldn't just return the source of the error in from, oh no... + struct probehdr rcvbuf; + struct iovec iov; +@@ -308,9 +313,10 @@ + continue; } - - return 0; + } +- +- //errno = err; +- //Com_Printf ("NET_GetPacket: %s\n", LOG_NET, NET_ErrorString()); +#else -+ SockadrToNetadr (&from, net_from); -+ Com_Printf ("NET_GetPacket: %s from %s\n", LOG_NET, NET_ErrorString(), NET_AdrToString (net_from)); -+ return -1; ++ errno = err; ++ Com_Printf ("NET_GetPacket: %s\n", LOG_NET, NET_ErrorString()); +#endif - } - Com_Printf ("NET_GetPacket: %s\n", LOG_NET, NET_ErrorString()); return 0; -@@ -359,11 +369,13 @@ + } + +@@ -426,6 +432,7 @@ return 0; } +#ifdef __linux__ // r1: accept icmp unreachables for quick disconnects - if (setsockopt (newsocket, IPPROTO_IP, IP_RECVERR, (char *)&i, sizeof(i)) == -1) + if (!net_no_recverr->intvalue) { - Com_Printf ("UDP_OpenSocket: Couldn't set IP_RECVERR: %s\n", LOG_NET, NET_ErrorString()); +@@ -434,6 +441,7 @@ + Com_Printf ("UDP_OpenSocket: Couldn't set IP_RECVERR: %s\n", LOG_NET, NET_ErrorString()); + } } +#endif |