1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 22:03:13 +02:00

Protect against duplicate PROTOCTL EAUTH (possible memleak)

This commit is contained in:
Bram Matthys
2019-10-05 07:49:54 +02:00
parent 3a64077f51
commit 858debdd01
+3
View File
@@ -221,6 +221,9 @@ CMD_FUNC(cmd_protoctl)
char buf[512];
ConfigItem_link *aconf = NULL;
if (IsEAuth(client))
return exit_client(client, NULL, "PROTOCTL EAUTH received twice");
strlcpy(buf, value, sizeof(buf));
p = strchr(buf, ' ');
if (p)