mirror of
https://github.com/anope/anope.git
synced 2026-06-30 11:36:36 +02:00
Bug #1380 - Do not allow akill masks to end in @.
This can be used to cause the IRCd to SQUIT us by adding invalid akills. The only known affected is Charybdis. Also fixed a crash caused by receiving a SQUIT for ourselves.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
Anope Version 1.8 - GIT
|
||||
-----------------------
|
||||
02/22 F Fixed several grammar errors in docs/ (patch provided by Simba) [ #00]
|
||||
12/31 F Fixed os_svsnick to allow changing the case of a users' nick [#1369]
|
||||
|
||||
02/22 F Fixed several grammar errors in docs/ (patch provided by Simba) [ #00]
|
||||
02/25 F Do not allow akill masks to end in @ [#1380]
|
||||
|
||||
Anope Version 1.8.7
|
||||
-----------------------
|
||||
|
||||
@@ -809,6 +809,14 @@ int add_akill(User * u, char *mask, const char *by, const time_t expires,
|
||||
*host = 0;
|
||||
host++;
|
||||
|
||||
if (!*host)
|
||||
{
|
||||
if (u)
|
||||
notice_lang(s_OperServ, u, BAD_USERHOST_MASK);
|
||||
free(mask2);
|
||||
return -1;
|
||||
}
|
||||
|
||||
entry = scalloc(sizeof(Akill), 1);
|
||||
|
||||
if (!entry) {
|
||||
|
||||
@@ -873,6 +873,9 @@ void charybdis_cmd_remove_akill(char *user, char *host)
|
||||
{
|
||||
Uid *ud;
|
||||
|
||||
if (!user || !*user || !host || !*host)
|
||||
return;
|
||||
|
||||
ud = find_uid(s_OperServ);
|
||||
send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ),
|
||||
"UNKLINE * %s %s", user, host);
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ static void delete_server(Server * serv, const char *quitreason)
|
||||
serv->prev->next = serv->next;
|
||||
if (serv->next)
|
||||
serv->next->prev = serv->prev;
|
||||
if (serv->uplink->links == serv)
|
||||
if (serv->uplink && serv->uplink->links == serv)
|
||||
serv->uplink->links = serv->next;
|
||||
|
||||
if (debug)
|
||||
|
||||
+2
-1
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="8"
|
||||
VERSION_EXTRA="-git"
|
||||
VERSION_BUILD="3093"
|
||||
VERSION_BUILD="3094"
|
||||
|
||||
# Changes since 1.8.7 Release
|
||||
#Revision 3094 - Bug #1380 - Do not allow akill masks to end in @
|
||||
#Revision 3093 - Fixed several grammar errors in docs/ (patch provided by Simba)
|
||||
#Revision 3092 - Updated Copyright to 2012
|
||||
#Revision 3091 - Bug #1369 - Fixed os_svsnick to allow changing the case of a users' nick
|
||||
|
||||
Reference in New Issue
Block a user