Skip to content

Commit

Permalink
Set ECMP active entry count to zero
Browse files Browse the repository at this point in the history
ECMP active entry count should be set to zero when we free the
array that holds the active members.

Change-Id: I57dc6a8dab993dbc7fb156e2fbf7bcf115beebe4
Closes-Bug: #1686452
  • Loading branch information
anandhk-juniper committed May 10, 2017
1 parent 166e99c commit 6d30c7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dp-core/vr_nexthop.c
Expand Up @@ -2856,6 +2856,7 @@ nh_composite_add(struct vr_nexthop *nh, vr_nexthop_req *req)
if (nh->nh_component_ecmp) {
vr_free(nh->nh_component_ecmp, VR_NEXTHOP_COMPONENT_OBJECT);
nh->nh_component_ecmp = NULL;
nh->nh_component_ecmp_cnt = 0;
}
}

Expand Down

0 comments on commit 6d30c7b

Please sign in to comment.