diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-05 14:16:36 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-12 22:29:23 +0100 |
commit | 1e71c51c91a65167b1792642eb05f6d2c6220709 (patch) | |
tree | c4cd00c4f9627afaa796a9db554d79f68d6df446 | |
parent | a7032de292d2b3c424acac3b61530eca98aacfe5 (diff) |
Add patch from Pie-Man to stop flooding connecting servers with 451 errors
-rw-r--r-- | src/parse.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index 8e6362d..43187f0 100644 --- a/src/parse.c +++ b/src/parse.c @@ -310,6 +310,18 @@ handle_command(struct Message *mptr, struct Client *client_p, handler = mptr->handlers[client_p->handler]; + /* New patch to avoid server flooding from unregistered connects + - Pie-Man 07/27/2000 -- while we have hybrid-7 -- rmk*/ + if (!IsRegistered(client_p)) + { + /* if its from a possible server connection + * ignore it.. more than likely its a header thats sneaked through + */ + if ((IsHandshake(client_p) || IsConnecting(client_p) || IsServer(client_p)) && + handler == m_unregistered) + return; + } + /* check right amount of params is passed... --is */ if (i < mptr->args_min) { |