while iterating through the endpoint table, only do so for the port in context.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos 2007-04-27 15:59:31 +00:00
parent 9cd3b980fd
commit f1a5bab268

View File

@ -282,6 +282,8 @@ EndpointManager::_BindToAddress(TCPEndpoint *endpoint, const sockaddr *_address)
while (portUsers.HasNext()) {
TCPEndpoint *user = portUsers.Next();
if (user->LocalAddress().Port() != port)
break;
if (user->LocalAddress().IsEmpty(false)
|| address.EqualTo(*user->LocalAddress(), false)) {