Skip to content

Commit

Permalink
Merge "NULL check for the presence of nexthop table" into R2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 23, 2015
2 parents 617938c + 8d049f3 commit b7805d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dp-core/vr_nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,9 @@ nh_table_exit(struct vrouter *router, bool soft_reset)
unsigned int i;
struct vr_nexthop *nh;

if (!router->vr_nexthops)
return;

for (i = 0; i < router->vr_max_nexthops; i++) {
if (soft_reset && i == NH_DISCARD_ID)
continue;
Expand Down

0 comments on commit b7805d9

Please sign in to comment.