From 5be69ba79470f35ca2b10f0e189a0a5a3fac6f28 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 11 Jun 2019 15:16:57 +0200 Subject: [PATCH] device: reset cached route tables when starting new activation The values cached in the device may be stale when we start a new activation because in a disconnected state we might have called ip_config_merge_and_apply() which cached the main table value. --- src/devices/nm-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 97c6022cfc..8a636a4f1f 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -6456,6 +6456,9 @@ activate_stage1_device_prepare (NMDevice *self) NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); NMActStageReturn ret = NM_ACT_STAGE_RETURN_SUCCESS; + priv->v4_route_table_initialized = FALSE; + priv->v6_route_table_initialized = FALSE; + _set_ip_state (self, AF_INET, NM_DEVICE_IP_STATE_NONE); _set_ip_state (self, AF_INET6, NM_DEVICE_IP_STATE_NONE);