Skip to content

Commit

Permalink
closes-bug:#1393201 Ensuring theat component nexthops exists before a…
Browse files Browse the repository at this point in the history
…ccesing the composite multicast nexthop

Change-Id: I2592047a411917891e4f7df94cd3ac644880e2c1
  • Loading branch information
divakardhar committed Nov 16, 2014
1 parent 63b1676 commit 5c5ff8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dp-core/vr_nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,8 @@ nh_composite_mcast_validate(struct vr_nexthop *nh, vr_nexthop_req *req)
if (tmp_nh && ((tmp_nh->nh_type != NH_COMPOSITE) ||
(!(tmp_nh->nh_flags & NH_FLAG_COMPOSITE_FABRIC)))) {
for (i = 1; i < nh->nh_component_cnt; i++) {
if (!nh->nh_component_nh[i].cnh)
continue;
if ((nh->nh_component_nh[i].cnh->nh_type == NH_COMPOSITE) &&
(nh->nh_component_nh[i].cnh->nh_flags &
NH_FLAG_COMPOSITE_FABRIC)) {
Expand Down

0 comments on commit 5c5ff8f

Please sign in to comment.