mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
sd-dhcp6-client: always set suitable ARP type
Also, drops unnecessary comparisons.
This commit is contained in:
parent
2ad2925de5
commit
5e82251913
@ -251,10 +251,6 @@ int sd_dhcp6_client_set_mac(
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (client->mac_addr_len == addr_len &&
|
||||
memcmp(&client->mac_addr, addr, addr_len) == 0)
|
||||
return 0;
|
||||
|
||||
memcpy(&client->mac_addr, addr, addr_len);
|
||||
client->mac_addr_len = addr_len;
|
||||
client->arp_type = arp_type;
|
||||
|
Loading…
Reference in New Issue
Block a user