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:
parent
9cd3b980fd
commit
f1a5bab268
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user