mirror of
https://github.com/MariaDB/server.git
synced 2025-12-28 08:10:14 +00:00
Merge branch '10.4' into 10.5
This commit is contained in:
commit
6e6d79a5cf
@ -326,7 +326,7 @@ static bool IsPortInUse(unsigned short port)
|
||||
}
|
||||
|
||||
bool in_use = false;
|
||||
if (bind(ip_sock, a->ai_addr, a->ai_addrlen) == SOCKET_ERROR)
|
||||
if (bind(ip_sock, a->ai_addr, (int)a->ai_addrlen) == SOCKET_ERROR)
|
||||
{
|
||||
DWORD last_error = WSAGetLastError();
|
||||
in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user