diff options
author | Adam <Adam@anope.org> | 2012-02-25 15:10:52 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-25 15:10:52 -0500 |
commit | 07fffb0b905cbf8e09d2235162ff3680cac12a2d (patch) | |
tree | 7b964c1abfba3aeb0d6aaf6698c1fdd0d52f819a /src/protocol/charybdis.c | |
parent | 1d3ca36768a013e1a28a1e3db1b4ad9f47fc2157 (diff) |
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.
Diffstat (limited to 'src/protocol/charybdis.c')
-rw-r--r-- | src/protocol/charybdis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index ad6256d29..6a4399be0 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -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); |