Set proper address on BindToEphemeral().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos 2007-04-09 22:50:55 +00:00
parent a238446abb
commit aab148f6b4

View File

@ -292,7 +292,7 @@ EndpointManager::BindToEphemeral(TCPEndpoint *endpoint, sockaddr *address)
TCPEndpoint *other = _LookupEndpoint(port);
if (other == NULL) {
// found a port
gAddressModule->set_to_empty_address((sockaddr *)&endpoint->socket->address);
gAddressModule->set_to((sockaddr *)&endpoint->socket->address, address);
gAddressModule->set_port((sockaddr *)&endpoint->socket->address, port);
TRACE((" EndpointManager::BindToEphemeral(%p) -> %s\n", endpoint,
AddressString(gDomain, (sockaddr *)&endpoint->socket->address, true).Data()));