summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-01-02 05:16:14 +0100
committerKay Sievers <kay@vrfy.org>2014-01-02 05:16:14 +0100
commitbe9326ca1d207e1df6a033c593393ebbbc433148 (patch)
tree2b6820a4a9177e72bec14583f0869467d735ceaa /src/network/networkd-link.c
parent5eb036ca53c6066770e05fa0b4f9d19974b86e0c (diff)
networkd: fix NULL pointer deref
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index e421dd4994..c0ca5f2d07 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);