mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 15:43:12 +02:00
Fix crash if an authenticated server advertises a wrong hop count,
eg due to self-written services / toying around.
This commit is contained in:
@@ -547,6 +547,7 @@ CMD_FUNC(cmd_server)
|
||||
sendto_umode_global(UMODE_OPER, "Directly linked server %s provided a hopcount of %d, while 1 was expected",
|
||||
servername, hop);
|
||||
exit_client(client, NULL, "Invalid SERVER message, hop count must be 1");
|
||||
return;
|
||||
}
|
||||
client->hopcount = hop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user