]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ensure pkt_afi and pkt_safi are not used uninited in some cases
authorDonald Sharp <sharpd@nvidia.com>
Wed, 27 Apr 2022 11:57:41 +0000 (07:57 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 29 Apr 2022 15:00:11 +0000 (15:00 +0000)
commit919fe51b519e0abbb11ef97be1813b0c55c51202
tree55f4d258e46af6054bdb9492ba3bb07ab6e16dc2
parent20da58094768fb9e939755dc23f411827d047bcb
bgpd: Ensure pkt_afi and pkt_safi are not used uninited in some cases

The compiler is, rightly, pointing out that in some cases it is
possible that the pkt_afi and pkt_safi values are not properly
set and could result in a use before initialized.  I do not
actually belive that this is possible, but let's make the compiler
happy.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 617975d114f41116a15f81ecf6f6c57487fc2e82)
bgpd/bgp_attr.c
bgpd/bgp_bmp.c
bgpd/bgp_open.c
bgpd/bgp_packet.c