mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
network: fix possible NULL-pointer dereference
This commit is contained in:
@@ -74,10 +74,13 @@ bool link_ipv6_enabled(Link *link) {
|
||||
if (!socket_ipv6_is_supported())
|
||||
return false;
|
||||
|
||||
if (link->network->bond)
|
||||
if (link->iftype == ARPHRD_CAN)
|
||||
return false;
|
||||
|
||||
if (link->iftype == ARPHRD_CAN)
|
||||
if (!link->network)
|
||||
return false;
|
||||
|
||||
if (link->network->bond)
|
||||
return false;
|
||||
|
||||
/* DHCPv6 client will not be started if no IPv6 link-local address is configured. */
|
||||
|
||||
Reference in New Issue
Block a user