* 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:
parent
4ae5863038
commit
b18832d423
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user