]> git.proxmox.com Git - mirror_frr.git/commit
zebra: prevent crash when nhlfe is NULL
authorDonald Sharp <sharpd@nvidia.com>
Wed, 4 Aug 2021 17:38:25 +0000 (13:38 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 4 Aug 2021 17:38:25 +0000 (13:38 -0400)
commit6140b3b41b37fcd0fac23ed11f9fa9df1db36b3c
tree8a98ba27abc238b3e34137c52c82580d7d3168fc
parentb7457b40cd77e0f3e6b45a77232af64aba17aea3
zebra: prevent crash when nhlfe is NULL

There exists a call path where the nhlfe_alloc can return NULL
for blackhole nexthops.  In this case we were still trying
to save the nhlfe pointer causing a crash when we attempted
to add it to a self-contained list.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_mpls.c