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:
Thomas Haller
2014-05-30 20:15:55 +02:00
parent 98052255ba
commit 253bfa5c47

View File

@@ -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);
} }