]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix static analysis issue in subgroup_announce_check()
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 2 Jun 2023 08:10:45 +0000 (10:10 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Jun 2023 08:55:17 +0000 (10:55 +0200)
commit961b8981976c797e23c307b9a82a83115d8bd61c
tree0747e6fa3106919264c389c776edebf2385fe591
parent7817cdeadc3ba539b24fc39d7ec31f10c9edce8d
bgpd: fix static analysis issue in subgroup_announce_check()

Remove the check about pi->peer value different from null.
Introducing this check introduces a SA warning on the value
of the from value (derived from pi->peer).

Actually, peer is set when bgp_path_info_make() call is
performed; peer is never null.

Fixes: 23bb4a9b5c64 ("bgpd: advertise mpls vpn routes with appropriate label")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c