Commit ee0c1cf0 authored by Thomas Haller's avatar Thomas Haller

policy: fix using wrong loop counter in _platform_route_sync_flush()

Fixes: e8824f6aSigned-off-by: Thomas Haller's avatarThomas Haller <>
parent 14537c71
......@@ -204,7 +204,7 @@ _platform_route_sync_flush (const VTableIP *vtable, NMDefaultRouteManager *self)
NMDefaultRouteManagerPrivate *priv = NM_DEFAULT_ROUTE_MANAGER_GET_PRIVATE (self);
GPtrArray *entries = vtable->get_entries (priv);
GArray *routes;
guint i;
guint i, j;
/* prune all other default routes from this device. */
......@@ -224,8 +224,8 @@ _platform_route_sync_flush (const VTableIP *vtable, NMDefaultRouteManager *self)
/* look at all entires and see if the route for this ifindex pair is
* a known entry. */
for (i = 0; i < entries->len; i++) {
Entry *e = g_ptr_array_index (entries, i);
for (j = 0; j < entries->len; j++) {
Entry *e = g_ptr_array_index (entries, j);
if (e->never_default)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment