sd-dhcp: remove unreachable route after rebinding return NAK

(cherry picked from commit cc3981b1272b9ce37e7d734a7b2f42e84acac535)
(cherry picked from commit 915c2f675a)
(cherry picked from commit cb77290a69)
(cherry picked from commit f211b140a5)
This commit is contained in:
Li Song 2018-10-19 13:41:51 -04:00 committed by Thomas Haller
parent 4ca0e57c46
commit 1cfefbb99f

View file

@ -1616,6 +1616,8 @@ static int client_handle_message(sd_dhcp_client *client, DHCPMessage *message, i
client->timeout_resend =
sd_event_source_unref(client->timeout_resend);
client_notify(client, SD_DHCP_CLIENT_EVENT_EXPIRED);
r = client_initialize(client);
if (r < 0)
goto error;