* Fixed broken UDP for non device bound sockets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38415 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -505,8 +505,8 @@ UdpDomainSupport::_FindActiveEndpoint(const sockaddr *ourAddress,
|
|||||||
std::make_pair(ourAddress, peerAddress));
|
std::make_pair(ourAddress, peerAddress));
|
||||||
|
|
||||||
// Make sure the bound_to_device constraint is fulfilled
|
// Make sure the bound_to_device constraint is fulfilled
|
||||||
while (endpoint != NULL && index != 0
|
while (endpoint != NULL && endpoint->socket->bound_to_device != 0
|
||||||
&& endpoint->socket->bound_to_device != index) {
|
&& index != 0 && endpoint->socket->bound_to_device != index) {
|
||||||
endpoint = endpoint->HashTableLink();
|
endpoint = endpoint->HashTableLink();
|
||||||
if (endpoint != NULL
|
if (endpoint != NULL
|
||||||
&& (!endpoint->LocalAddress().EqualTo(ourAddress, true)
|
&& (!endpoint->LocalAddress().EqualTo(ourAddress, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user