From be9326ca1d207e1df6a033c593393ebbbc433148 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 2 Jan 2014 05:16:14 +0100 Subject: [PATCH] networkd: fix NULL pointer deref --- src/network/networkd-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index e421dd49947..c0ca5f2d07a 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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);