commit - 344185b1bd6254ac4a198b3caeaf08db285016c8
commit + 9ee3760493a8c64f7d84ffb69c0b04a3e1a8a1c0
blob - f1d02711b35cfba3de103bfa836c366a40ad21c8
blob + 56cae2acd973d238f01add89ed0c86fa6e2ea6da
--- src/ngircd/irc-info.c
+++ src/ngircd/irc-info.c
}
}
- /* If there are a lot of clients, augment penalty a bit */
+ /* If there are a lot of clients, increase the penalty a bit */
if (count > MAX_RPL_WHO)
IRC_SetPenalty(Client, 1);
continue;
}
got_wildcard = true;
+ /* Increase penalty for wildcard queries */
IRC_SetPenalty(Client, 3);
for (c = Client_First(); c; c = Client_Next(c)) {
blob - 0b50bca659e40c3f89ed217c00d0ccf1de060be1
blob + ab4023ac9c964471aa4e6b025d80a19221978c93
--- src/ngircd/irc-oper.c
+++ src/ngircd/irc-oper.c
{
Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s",
Client_Mask(Client), errtoken, errmsg);
+ /* Increase penalty to slow down possible brute force attacks */
IRC_SetPenalty(Client, 10);
return IRC_WriteStrClient(Client, ERR_PASSWDMISMATCH_MSG,
Client_ID(Client));