Neighbor entries for static ECMP routes were not cleaned up during
reconfigure and pointed to the old instances, which leads to crash
after reconfigure.
Thanks to Vladimir Osmolovskiy for the bugreport.
if (r->neigh)
r->neigh->data = NULL;
if (r->neigh)
r->neigh->data = NULL;
+ if (r->dest == RTD_MULTIPATH)
+ for (t = r->mp_next; t; t = t->mp_next)
+ if (t->neigh)
+ t->neigh->data = NULL;
+
WALK_LIST(t, n->iface_routes)
if (static_same_net(r, t))
goto found;
WALK_LIST(t, n->iface_routes)
if (static_same_net(r, t))
goto found;