]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: fix assertion when link get carrier 12466/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 May 2019 23:13:10 +0000 (01:13 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 May 2019 23:14:36 +0000 (01:14 +0200)
commitb9ea3d2e47b3741f3f46ba9c5e19640136933b71
tree717fd7a9a7ce6d56b98642bb532fe038d3cca2e5
parent64538af89b4fe72658d7b33e2022d06805badb14
network: fix assertion when link get carrier

This fixes a bug introduced by bd08ce56156751d58584a44e766ef61340cdae2d.
When link is in LINK_STATE_INITIALIZED, `Link::network` may not be
set yet.

Fixes #12452.
src/network/networkd-link.c