bugfix corr
This commit is contained in:
Родитель
6ddf0b494e
Коммит
26c4336f9b
|
@ -540,11 +540,11 @@ static int initiate_socket_connection(SOCKET_IO_INSTANCE* socket_io_instance)
|
||||||
|
|
||||||
if (socket_io_instance->address_type == ADDRESS_TYPE_IP)
|
if (socket_io_instance->address_type == ADDRESS_TYPE_IP)
|
||||||
{
|
{
|
||||||
socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
|
socket_io_instance->socket = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
socket(AF_UNIX, SOCK_STREAM, 0);
|
socket_io_instance->socket = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (socket_io_instance->socket < SOCKET_SUCCESS)
|
if (socket_io_instance->socket < SOCKET_SUCCESS)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче