* 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:
Axel Dörfler
2010-08-28 10:41:57 +00:00
parent f059c93c7d
commit da0d740954
@@ -505,8 +505,8 @@ UdpDomainSupport::_FindActiveEndpoint(const sockaddr *ourAddress,
std::make_pair(ourAddress, peerAddress));
// Make sure the bound_to_device constraint is fulfilled
while (endpoint != NULL && index != 0
&& endpoint->socket->bound_to_device != index) {
while (endpoint != NULL && endpoint->socket->bound_to_device != 0
&& index != 0 && endpoint->socket->bound_to_device != index) {
endpoint = endpoint->HashTableLink();
if (endpoint != NULL
&& (!endpoint->LocalAddress().EqualTo(ourAddress, true)