mirror of
https://github.com/matrix-construct/construct
synced 2024-09-08 17:55:47 +02:00
Fix a crash when connecting to a server.
This commit is contained in:
parent
a63a1eab74
commit
f56fdec2a0
1 changed files with 2 additions and 2 deletions
|
@ -1409,7 +1409,7 @@ fork_server(struct Client *server)
|
||||||
|
|
||||||
s_assert(server->localClient);
|
s_assert(server->localClient);
|
||||||
server->localClient->ctrlfd = ctrl_fds[0];
|
server->localClient->ctrlfd = ctrl_fds[0];
|
||||||
server->localClient->F->fd = data_fds[0];
|
server->localClient->F = comm_add_fd(data_fds[0]);
|
||||||
|
|
||||||
if(!comm_set_nb(server->localClient->F->fd))
|
if(!comm_set_nb(server->localClient->F->fd))
|
||||||
{
|
{
|
||||||
|
@ -1517,7 +1517,7 @@ serv_connect(struct server_conf *server_p, struct Client *by)
|
||||||
strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
|
strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
|
||||||
strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
|
strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
|
||||||
strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
|
strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
|
||||||
client_p->localClient->F->fd = fd;
|
client_p->localClient->F = comm_add_fd(fd);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up the initial server evilness, ripped straight from
|
* Set up the initial server evilness, ripped straight from
|
||||||
|
|
Loading…
Reference in a new issue