summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_zebra.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-20 06:00:31 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-30 17:36:10 +0300
commit1fa58587355b61793bfaeb7c295d4d1292aaa4f7 (patch)
treefad39b5095773e860a3538a8630b5d6a8b64afa7 /ospf6d/ospf6_zebra.c
parentf5f26b8fcad0e36b7d8b88aeb652072eb203da22 (diff)
ospf6: fix crash on shutdown
The crash is sometimes reproduced by all_protocol_startup topotest. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
-rw-r--r--ospf6d/ospf6_zebra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c
index f21e940a77..7a8027a37f 100644
--- a/ospf6d/ospf6_zebra.c
+++ b/ospf6d/ospf6_zebra.c
@@ -344,7 +344,8 @@ static void ospf6_zebra_route_update(int type, struct ospf6_route *request,
api.prefix = *dest;
SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP);
api.nexthop_num = MIN(nhcount, MULTIPATH_NUM);
- ospf6_route_zebra_copy_nexthops(request, api.nexthops, api.nexthop_num);
+ ospf6_route_zebra_copy_nexthops(request, api.nexthops, api.nexthop_num,
+ api.vrf_id);
SET_FLAG(api.message, ZAPI_MESSAGE_METRIC);
api.metric = (request->path.metric_type == 2 ? request->path.u.cost_e2
: request->path.cost);