diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-11 15:26:28 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-13 17:17:42 -0400 | 
| commit | 2165e2eaf97b648547c1143821d97b7f80467799 (patch) | |
| tree | c9a587c33866a168d10add55a21dbf0e0d313616 /bgpd/bgp_mpath.c | |
| parent | 267fa38ed36a5960e8cba5303dd3abee1ff7d7a6 (diff) | |
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 e33f3d3477..915387ca2d 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)  | 
