1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Revert wrong change.

This commit is contained in:
unknown
2011-11-02 14:10:09 +01:00
parent 5da52cd108
commit c915fdf15d

View File

@@ -2117,8 +2117,12 @@ static my_socket activate_tcp_port(uint port)
unireg_abort(1); /* purecov: tested */
}
for (a= ai; a != NULL && ip_sock == INVALID_SOCKET; a= a->ai_next)
ip_sock= socket(a->ai_family, a->ai_socktype, a->ai_protocol);
for (a= ai; a != NULL; a= a->ai_next)
{
ip_sock= socket(a->ai_family, a->ai_socktype, a->ai_protocol);
if (ip_sock != INVALID_SOCKET)
break;
}
if (ip_sock == INVALID_SOCKET)
{