aboutsummaryrefslogtreecommitdiffstats
path: root/irc
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 /irc
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 'irc')
-rw-r--r--irc/ircd-hybrid-ru/Makefile2
-rw-r--r--irc/ircd-hybrid-ru/files/patch-src-packet.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/irc/ircd-hybrid-ru/Makefile b/irc/ircd-hybrid-ru/Makefile
index 0be89380441a..17df3ace2c86 100644
--- a/irc/ircd-hybrid-ru/Makefile
+++ b/irc/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/irc/ircd-hybrid-ru/files/patch-src-packet.c b/irc/ircd-hybrid-ru/files/patch-src-packet.c
new file mode 100644
index 000000000000..2d192ac37b96
--- /dev/null
+++ b/irc/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))
+ {