summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-11 21:26:28 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-13 23:17:42 +0200
commit2165e2eaf97b648547c1143821d97b7f80467799 (patch)
treec9a587c33866a168d10add55a21dbf0e0d313616 /bgpd/bgp_mpath.c
parentospf6d: assert nh list is non-null (diff)
downloadfrr-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.c2
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)