sd-dhcp: remove unreachable route after rebinding return NAK

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

View file

@ -1688,6 +1688,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;