From 62378ec21e6a886178382cc394964d4e8dd12759 Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Mon, 21 Jun 2004 08:26:37 +0000 Subject: fix ircd-hybrid-7 low-bandwidth DoS - - PR: 68161 Submitted by: Evgueni V. Gavrilov (maintainer) Obtained from: Erik Sperling Johansen (http://www.securityfocus.com/archive/1/366486) --- irc/ircd-hybrid-ru/Makefile | 2 +- irc/ircd-hybrid-ru/files/patch-src-packet.c | 11 +++++++++++ russian/ircd-hybrid-ru/Makefile | 2 +- russian/ircd-hybrid-ru/files/patch-src-packet.c | 11 +++++++++++ russian/ircd-hybrid/Makefile | 2 +- russian/ircd-hybrid/files/patch-src-packet.c | 11 +++++++++++ 6 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 irc/ircd-hybrid-ru/files/patch-src-packet.c create mode 100644 russian/ircd-hybrid-ru/files/patch-src-packet.c create mode 100644 russian/ircd-hybrid/files/patch-src-packet.c 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)) + { 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)) + { -- cgit v1.2.3