FIB: pass a copy the walk context
since it can realloc when new ctx are added. If
not we can get some nasty memory corruption.
@@ -363,7 +363,9 @@ fib_walk_advance (fib_node_index_t fwi)
while (ii < n_ctxs)
{
- wrc = fib_node_back_walk_one(&sibling, &fwalk->fw_ctx[ii]);
+ fib_node_back_walk_ctx_t ctx = fwalk->fw_ctx[ii];
+
+ wrc = fib_node_back_walk_one(&sibling, &ctx);
ii++;
fwalk = fib_walk_get(fwi);
