]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: pi->attr is deref'ed in all paths leading up to test
authorDonald Sharp <sharpd@nvidia.com>
Tue, 5 Mar 2024 15:37:48 +0000 (10:37 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 5 Mar 2024 15:37:48 +0000 (10:37 -0500)
commita9c16a0a8993198cddd3613d6f80d45c49cecdf7
tree10a7c27f19d017757d4a96af1b6489ae56377a9d
parentcf4d838e69b19fd5066da85e0c44b7c569af4e66
bgpd: pi->attr is deref'ed in all paths leading up to test

In make_prefix, the code checks to see if the pi->attr
is non-NULL.  Since (A) we cannot have a path_info without
an attribute and (B) all paths leading up to the test
in make_prefix already have pi->attr deref'ed and the
code is not crashing we know this is safe to remove.

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