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:
@@ -282,6 +282,8 @@ EndpointManager::_BindToAddress(TCPEndpoint *endpoint, const sockaddr *_address)
|
|||||||
|
|
||||||
while (portUsers.HasNext()) {
|
while (portUsers.HasNext()) {
|
||||||
TCPEndpoint *user = portUsers.Next();
|
TCPEndpoint *user = portUsers.Next();
|
||||||
|
if (user->LocalAddress().Port() != port)
|
||||||
|
break;
|
||||||
|
|
||||||
if (user->LocalAddress().IsEmpty(false)
|
if (user->LocalAddress().IsEmpty(false)
|
||||||
|| address.EqualTo(*user->LocalAddress(), false)) {
|
|| address.EqualTo(*user->LocalAddress(), false)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user