diff options
author | eik <eik@FreeBSD.org> | 2004-06-21 16:26:37 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-06-21 16:26:37 +0800 |
commit | c87171a317b02c73e4797935700e89d38799f4c0 (patch) | |
tree | 57aaf1b7607a15f830dbfc95277837d4e6407bfa /russian | |
parent | 8c8a11dc7eba85b7437c1ff089b22a552ccfce20 (diff) | |
download | freebsd-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/Makefile | 2 | ||||
-rw-r--r-- | russian/ircd-hybrid-ru/files/patch-src-packet.c | 11 | ||||
-rw-r--r-- | russian/ircd-hybrid/Makefile | 2 | ||||
-rw-r--r-- | russian/ircd-hybrid/files/patch-src-packet.c | 11 |
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)) + { |