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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user