Remove the check about pi->peer value different from null.
Introducing this check introduces a SA warning on the value
of the from value (derived from pi->peer).
Actually, peer is set when bgp_path_info_make() call is
performed; peer is never null.
Fixes: 23bb4a9b5c64 ("bgpd: advertise mpls vpn routes with appropriate label")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
}
} else if (safi == SAFI_MPLS_VPN &&
CHECK_FLAG(pi->flags, BGP_PATH_MPLSVPN_NH_LABEL_BIND) &&
- pi->mplsvpn.bmnc.nh_label_bind_cache && from && peer &&
+ pi->mplsvpn.bmnc.nh_label_bind_cache && peer &&
pi->peer != peer && pi->sub_type != BGP_ROUTE_IMPORTED &&
pi->sub_type != BGP_ROUTE_STATIC &&
bgp_mplsvpn_path_uses_valid_mpls_label(pi) &&