summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto/static/static.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index 849067b9..6ddff146 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -518,6 +518,11 @@ static_match(struct proto *p, struct static_route *r, struct static_config *n)
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;