diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index d1b3919d72d6..429d1c8ac7b9 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12329,7 +12329,7 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp, mpls_lse_decode(dest->local_label, &label, &ttl, &exp, &bos); - has_valid_label = bgp_is_valid_label(&label); + has_valid_label = bgp_is_valid_label(&dest->local_label); if (safi == SAFI_EVPN) { if (!json) {