1
0
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:
Bram Matthys
2020-04-12 15:49:11 +02:00
parent 016dd20e16
commit cf53797121
+1
View File
@@ -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;