* Only return the first address of the family if there was no address specified

in the request.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40445 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2011-02-11 20:19:08 +00:00
parent 4ae5863038
commit b18832d423

View File

@ -802,8 +802,7 @@ interface_protocol_control(net_datalink_protocol* _protocol, int32 option,
// Find first address that matches the local address
address = interface->AddressForLocal(protocol->domain,
(const sockaddr*)&request.ifra_addr);
}
if (address == NULL) {
} else {
// Find first address for family
address = interface->FirstForFamily(
protocol->domain->family);