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:
Axel Dörfler 2006-12-04 17:15:36 +00:00
parent f4b9215615
commit 03a536148f

View File

@ -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;