diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-11 21:26:28 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-13 23:17:42 +0200 |
commit | 2165e2eaf97b648547c1143821d97b7f80467799 (patch) | |
tree | c9a587c33866a168d10add55a21dbf0e0d313616 /bgpd/bgp_mpath.c | |
parent | ospf6d: assert nh list is non-null (diff) | |
download | frr-2165e2eaf97b648547c1143821d97b7f80467799.tar.xz frr-2165e2eaf97b648547c1143821d97b7f80467799.zip |
bgpd: verify that multipath infos are set
Makes clang-analyze happy
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r-- | bgpd/bgp_mpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index e33f3d347..915387ca2 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -592,6 +592,8 @@ void bgp_info_mpath_update(struct bgp_node *rn, struct bgp_info *new_best, */ new_mpath = listgetdata(mp_node); list_delete_node(mp_list, mp_node); + assert(new_mpath); + assert(prev_mpath); if ((mpath_count < maxpaths) && (new_mpath != new_best) && bgp_info_nexthop_cmp(prev_mpath, new_mpath)) { if (new_mpath == next_mpath) |