mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
networkd: fix NULL pointer deref
This commit is contained in:
parent
5eb036ca53
commit
be9326ca1d
@ -633,7 +633,7 @@ int link_update(Link *link, sd_rtnl_message *m) {
|
||||
} else if (!(link->flags & IFF_LOWER_UP) && flags & IFF_LOWER_UP) {
|
||||
log_info("Interface '%s' is connected", link->ifname);
|
||||
|
||||
if (link->network->dhcp) {
|
||||
if (link->network && link->network->dhcp) {
|
||||
r = link_acquire_conf(link);
|
||||
if (r < 0) {
|
||||
link_enter_failed(link);
|
||||
|
Loading…
Reference in New Issue
Block a user