[IPV4]: Fix garbage collection of multipath route entries
[linux-2.6.git] / net / ipv4 / route.c
index d82c242..fca5fe0 100644 (file)
@@ -835,7 +835,7 @@ static int rt_garbage_collect(void)
                                        int r;
 
                                        rthp = rt_remove_balanced_route(
-                                               &rt_hash_table[i].chain,
+                                               &rt_hash_table[k].chain,
                                                rth,
                                                &r);
                                        goal -= r;