mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 02:35:03 +01:00
tcp: Subsequent connect() call should return EALREADY.
* should fix #13662.
This commit is contained in:
parent
abb297f5db
commit
d784225237
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user