tcp: Subsequent connect() call should return EALREADY.

* should fix #13662.
This commit is contained in:
Jérôme Duval 2017-08-11 15:51:56 +02:00
parent abb297f5db
commit d784225237

View File

@ -612,7 +612,7 @@ TCPEndpoint::Connect(const sockaddr* address)
} else if (fState == ESTABLISHED) {
return EISCONN;
} else if (fState != CLOSED)
return EINPROGRESS;
return EALREADY;
// consider destination address INADDR_ANY as INADDR_LOOPBACK
sockaddr_storage _address;