diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-08-27 17:49:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 17:49:55 -0400 |
| commit | 0bad64e9ddb6813bc34e2e03f97990e37a0b64b0 (patch) | |
| tree | 6b9ad8ebfd7c77345866c4f53f64fc6dab51919a /bgpd/rfapi/rfapi_import.c | |
| parent | 70a43de7568ef6ffa6e068ed0532af0157585f0d (diff) | |
| parent | 7000f344b30b9a2e3906a661e8a70df2d374eca1 (diff) | |
Merge pull request #16671 from opensourcerouting/fix/a152692f5ac207b5f55104b18ddc3146089db474_10.1
bgpd: fix labels static-analyser (backport #16655)
Diffstat (limited to 'bgpd/rfapi/rfapi_import.c')
| -rw-r--r-- | bgpd/rfapi/rfapi_import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index 2afcb2f45c..44dfc88cf7 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -1272,7 +1272,7 @@ rfapiRouteInfo2NextHopEntry(struct rfapi_ip_prefix *rprefix, /* label comes from MP_REACH_NLRI label */ vo->v.l2addr.label = - bgp_path_info_num_labels(bpi) + BGP_PATH_INFO_NUM_LABELS(bpi) ? decode_label(&bpi->extra->labels->label[0]) : MPLS_INVALID_LABEL; @@ -4167,7 +4167,7 @@ static void rfapiBgpTableFilteredImport(struct bgp *bgp, BGP_PATH_REMOVED)) continue; - if (bgp_path_info_num_labels(bpi)) + if (BGP_PATH_INFO_NUM_LABELS(bpi)) label = decode_label( &bpi->extra->labels ->label[0]); |
