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