TCPEndpoint::fEndpointNextWithSamePort was not initialized when binding to an ephemeral port.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19424 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f4b9215615
commit
03a536148f
@ -285,6 +285,7 @@ EndpointManager::BindToEphemeral(TCPEndpoint *endpoint, sockaddr *address)
|
||||
if (other == NULL) {
|
||||
// found a port
|
||||
gAddressModule->set_port((sockaddr *)&endpoint->socket->address, port);
|
||||
endpoint->fEndpointNextWithSamePort = NULL;
|
||||
hash_insert(fEndpointHash, endpoint);
|
||||
hash_insert(fConnectionHash, endpoint);
|
||||
return B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user