From aab148f6b4cc914c3b7e0c803dfa60abe0b48c10 Mon Sep 17 00:00:00 2001 From: Hugo Santos Date: Mon, 9 Apr 2007 22:50:55 +0000 Subject: [PATCH] Set proper address on BindToEphemeral(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20627 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/protocols/tcp/EndpointManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/network/protocols/tcp/EndpointManager.cpp b/src/add-ons/kernel/network/protocols/tcp/EndpointManager.cpp index 4ccef515f4..e526f73a5e 100644 --- a/src/add-ons/kernel/network/protocols/tcp/EndpointManager.cpp +++ b/src/add-ons/kernel/network/protocols/tcp/EndpointManager.cpp @@ -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()));