The multipath arrays are always being allocated, irrelevant
if we actually have multipath information for a prefix.
This is because the link bandwidth code was always adding the
data structure. We should not be allocated multipath information
unless we actually have multipath information
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
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;