1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 14:53:14 +02:00

Reject invalid SID from PROTOCTL.

This commit is contained in:
Bram Matthys
2019-10-18 14:00:46 +02:00
parent 9171d58ad0
commit 5cd7134cc2
+6
View File
@@ -184,6 +184,12 @@ CMD_FUNC(cmd_protoctl)
return;
}
if (!valid_sid(value))
{
exit_client(client, NULL, "Invalid SID. The first character must be a digit and the other two characters must be A-Z0-9. Eg: 0AA.");
return;
}
if (IsServer(client))
{
exit_client(client, NULL, "Got PROTOCTL SID after SERVER, that's the wrong order!");