]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Ensure listnode returns are usable
authorDonald Sharp <sharpd@nvidia.com>
Mon, 7 Aug 2023 19:57:29 +0000 (15:57 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 7 Aug 2023 19:57:29 +0000 (15:57 -0400)
commit296645fc78a4147fdea81f174cb222dd633722c1
treecaa9240f377d3dddd040d6609b26e01e58b8c2b8
parent529203905b6bbb1c78cf806d1f808eed41a182d7
ospfd: Ensure listnode returns are usable

Coverity is complaining that listnode can return a NULL
value and thus FRR could derefence the returned value.
Since this is not crashing we know that this is not happening
in the wild.  Let's make this an assert or check that it is
legal to use the value.

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