summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r--bgpd/bgp_mpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index b7f516eaf7..ff5cfe05fb 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -412,8 +412,9 @@ static void bgp_path_info_mpath_lb_update(struct bgp_path_info *path, bool set,
struct bgp_path_info_mpath *mpath;
if ((mpath = path->mpath) == NULL) {
- if (!set)
+ if (!set || (cum_bw == 0 && !all_paths_lb))
return;
+
mpath = bgp_path_info_mpath_get(path);
if (!mpath)
return;