platform: fix crash after 'fix check_cache_items() to check items in two steps'
Fixes regression introduced by commit 90ab7e83ff
.
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
@@ -1292,7 +1292,7 @@ check_cache_items (NMPlatform *platform, struct nl_cache *cache, int ifindex)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < objects_to_refresh->len; i++)
|
for (i = 0; i < objects_to_refresh->len; i++)
|
||||||
refresh_object (platform, object, TRUE, NM_PLATFORM_REASON_CACHE_CHECK);
|
refresh_object (platform, objects_to_refresh->pdata[i], TRUE, NM_PLATFORM_REASON_CACHE_CHECK);
|
||||||
|
|
||||||
g_ptr_array_free (objects_to_refresh, TRUE);
|
g_ptr_array_free (objects_to_refresh, TRUE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user