]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-dhcp4.c
networkd: dont crash when mtu changes (#6594)
authorAndrew Jeddeloh <andrewjeddeloh@gmail.com>
Thu, 31 Aug 2017 08:58:39 +0000 (01:58 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 31 Aug 2017 08:58:39 +0000 (10:58 +0200)
commit0c9b15a38a558d8f84257455ee24174221069e9e
tree027268b41b66377f782a558d53b1f16b775e3863
parent081dc6382276072a23bba23fe03ec7d9a27102e6
networkd: dont crash when mtu changes (#6594)

Prevent networkd from crashing when UseMTU is used. Many drivers will
bring the link down and then back up to configure a new MTU. Networkd
will also asynchonously send rtnl messages to configure the link and may
receive responses after the link has gone down and come back up (which
networkd will handle and set the lease and network to NULL.

This changes the behavior to instead return if this is the case instead
of crashing via assert.
src/network/networkd-dhcp4.c