Skip to content

Commit

Permalink
Merge pull request #3261 from mjstapp/fix_rib_close
Browse files Browse the repository at this point in the history
zebra: only uninstall once, when closing rib table
  • Loading branch information
donaldsharp committed Oct 30, 2018
2 parents 8603f6a + 258c07e commit cac967c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zebra/zebra_rib.c
Expand Up @@ -3246,8 +3246,10 @@ void rib_close_table(struct route_table *table)
if (info->safi == SAFI_UNICAST)
hook_call(rib_update, rn, NULL);

if (!RIB_SYSTEM_ROUTE(dest->selected_fib))
if (!RIB_SYSTEM_ROUTE(dest->selected_fib)) {
rib_uninstall_kernel(rn, dest->selected_fib);
dest->selected_fib = NULL;
}
}
}
}
Expand Down

0 comments on commit cac967c

Please sign in to comment.