From 233d89da4bf21dc812b89780692e4d8503bbb9ba Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 5 Sep 2023 17:53:33 +0200 Subject: [PATCH] dhcp: don't schedule commit of type "update" when clearing acd We don't know the reason why the DHCP client is being stopped. It is wrong to schedule a commit of type "update" because the device could be now unmanaged. Schedule instead a commit of type "auto", which automatically determines the type of commit based on registered handles. (cherry picked from commit a49913504d4ce1b62d84679085912ba1ca4b1e0e) --- src/core/dhcp/nm-dhcp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dhcp/nm-dhcp-client.c b/src/core/dhcp/nm-dhcp-client.c index 6978bd3cb0..4be03f4bab 100644 --- a/src/core/dhcp/nm-dhcp-client.c +++ b/src/core/dhcp/nm-dhcp-client.c @@ -527,7 +527,7 @@ _acd_reglist_data_remove(NMDhcpClient *self, guint idx, gboolean do_log) nm_clear_l3cd(®list_data->l3cd); - nm_l3cfg_commit_on_idle_schedule(priv->config.l3cfg, NM_L3_CFG_COMMIT_TYPE_UPDATE); + nm_l3cfg_commit_on_idle_schedule(priv->config.l3cfg, NM_L3_CFG_COMMIT_TYPE_AUTO); g_array_remove_index(priv->v4.acd.reglist, idx);