]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/dhcp6: return earlier if no lease acquired
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Apr 2024 01:49:32 +0000 (10:49 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Apr 2024 07:39:36 +0000 (09:39 +0200)
commitd4dae4c24388f6bff8f9015d7d266376d8d8b9c6
tree04d60650c73d5b6f90502af1e4386241a03bfcd2
parentc848a0eef66accb89722fd7c136cf4a2e424f68c
network/dhcp6: return earlier if no lease acquired

Previously, even If an interface has not acquired a DHCPv6 lease,
networkd logs a misleading message:
===
Apr 09 10:44:57 systemd-networkd[3970750]: veth99: DHCPv6 lease lost
===
The function should do nothing when no lease acquired. Let's return
earlier and suppress the log message.
src/network/networkd-dhcp6.c