1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 18:43:12 +02:00

Set cptr->name after EAUTH. Fixes bug #4915 reported by Eman:

missing server name in link rejection message (clock mismatch).
This commit is contained in:
Bram Matthys
2017-10-18 15:43:13 +02:00
parent f8cab0d093
commit 5bedeaa9bf
+5
View File
@@ -335,6 +335,11 @@ CMD_FUNC(m_protoctl)
SetEAuth(cptr);
make_server(cptr); /* allocate and set cptr->serv */
/* Set cptr->name but don't add to hash list. The real work on
* that is done in m_server. We just set it here for display
* purposes of error messages (such as reject due to clock).
*/
strlcpy(cptr->name, servername, sizeof(cptr->name));
if (protocol)
cptr->serv->features.protocol = atoi(protocol);
if (!IsHandshake(cptr) && aconf) /* Send PASS early... */