]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-client: do not crash if sd_dhcp_client_send_release() is called with no lease 13696/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Oct 2019 08:29:41 +0000 (10:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Oct 2019 12:01:42 +0000 (14:01 +0200)
commit8bea7e700f5e73d9a92583f71647c9788defb843
treeeabc68df18f9e59955c6acd9f53697c8558f9863
parent8ff4585ffa870bce1a02dbf53cfcae7f559c3e83
sd-dhcp-client: do not crash if sd_dhcp_client_send_release() is called with no lease

Again, a public function should not crash if called at an inopportune moment.

Also, make sure we don't call the function if we have no lease.
src/libsystemd-network/sd-dhcp-client.c
src/network/networkd-dhcp4.c