Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib, zebra, pbrd, isisd, bgpd: fix static errors #17986

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions zebra/rib.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ DECLARE_HOOK(rib_shutdown, (struct route_node * rn), (rn));
*/
static inline struct nexthop_group *rib_get_fib_nhg(struct route_entry *re)
{
if (re == NULL)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer that we figure out why a call to rib-get_fib_nhg is even possible with a null pointer instead of this fix

return NULL;
/* If the fib set is a subset of the active rib set,
* use the dedicated fib list.
*/
Expand Down