aboutsummaryrefslogtreecommitdiffstats
path: root/russian
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-06-21 16:26:37 +0800
committereik <eik@FreeBSD.org>2004-06-21 16:26:37 +0800
commitc87171a317b02c73e4797935700e89d38799f4c0 (patch)
tree57aaf1b7607a15f830dbfc95277837d4e6407bfa /russian
parent8c8a11dc7eba85b7437c1ff089b22a552ccfce20 (diff)
downloadfreebsd-ports-gnome-c87171a317b02c73e4797935700e89d38799f4c0.tar.gz
freebsd-ports-gnome-c87171a317b02c73e4797935700e89d38799f4c0.tar.zst
freebsd-ports-gnome-c87171a317b02c73e4797935700e89d38799f4c0.zip
fix ircd-hybrid-7 low-bandwidth DoS
- <http://people.freebsd.org/~eik/portaudit/23aafa20-c28a-11d8-864c-02e0185c0b53.html> - <http://vuxml.freebsd.org/23aafa20-c28a-11d8-864c-02e0185c0b53.html> PR: 68161 Submitted by: Evgueni V. Gavrilov <aquatique-ports@rambler.ru> (maintainer) Obtained from: Erik Sperling Johansen <einride@einride.org> (http://www.securityfocus.com/archive/1/366486)
Diffstat (limited to 'russian')
-rw-r--r--russian/ircd-hybrid-ru/Makefile2
-rw-r--r--russian/ircd-hybrid-ru/files/patch-src-packet.c11
-rw-r--r--russian/ircd-hybrid/Makefile2
-rw-r--r--russian/ircd-hybrid/files/patch-src-packet.c11
4 files changed, 24 insertions, 2 deletions
diff --git a/russian/ircd-hybrid-ru/Makefile b/russian/ircd-hybrid-ru/Makefile
index 0be89380441a..17df3ace2c86 100644
--- a/russian/ircd-hybrid-ru/Makefile
+++ b/russian/ircd-hybrid-ru/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ircd
PORTVERSION= 7.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= irc russian
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://rusunix.org/pub/FreeBSD/distfiles/
diff --git a/russian/ircd-hybrid-ru/files/patch-src-packet.c b/russian/ircd-hybrid-ru/files/patch-src-packet.c
new file mode 100644
index 000000000000..2d192ac37b96
--- /dev/null
+++ b/russian/ircd-hybrid-ru/files/patch-src-packet.c
@@ -0,0 +1,11 @@
+--- src/packet.c.orig Mon Jun 21 09:43:24 2004
++++ src/packet.c Mon Jun 21 09:44:15 2004
+@@ -467,7 +467,7 @@
+ parse_client_queued(client_p);
+
+ /* Check to make sure we're not flooding */
+- if (IsPerson(client_p) &&
++ if (!(IsServer(client_p) || IsHandshake(client_p) || IsConnecting(client_p)) &&
+ (dbuf_length(&client_p->localClient->buf_recvq) >
+ (unsigned int)ConfigFileEntry.client_flood))
+ {
diff --git a/russian/ircd-hybrid/Makefile b/russian/ircd-hybrid/Makefile
index 0be89380441a..17df3ace2c86 100644
--- a/russian/ircd-hybrid/Makefile
+++ b/russian/ircd-hybrid/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ircd
PORTVERSION= 7.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= irc russian
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://rusunix.org/pub/FreeBSD/distfiles/
diff --git a/russian/ircd-hybrid/files/patch-src-packet.c b/russian/ircd-hybrid/files/patch-src-packet.c
new file mode 100644
index 000000000000..2d192ac37b96
--- /dev/null
+++ b/russian/ircd-hybrid/files/patch-src-packet.c
@@ -0,0 +1,11 @@
+--- src/packet.c.orig Mon Jun 21 09:43:24 2004
++++ src/packet.c Mon Jun 21 09:44:15 2004
+@@ -467,7 +467,7 @@
+ parse_client_queued(client_p);
+
+ /* Check to make sure we're not flooding */
+- if (IsPerson(client_p) &&
++ if (!(IsServer(client_p) || IsHandshake(client_p) || IsConnecting(client_p)) &&
+ (dbuf_length(&client_p->localClient->buf_recvq) >
+ (unsigned int)ConfigFileEntry.client_flood))
+ {