diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-12 09:35:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 09:35:16 -0500 |
| commit | 418d0064bc9ab734da9554f526f1a3158bb7e3b4 (patch) | |
| tree | aafb1cd0e73ce7fbb57fc03c097aba31bf857916 | |
| parent | 9623612fc0f2a93a0ed4498892e6d2f8f3e255c6 (diff) | |
| parent | d3741f84371a6fd6bbfacabc13ed7e1ff8160de9 (diff) | |
Merge pull request #18068 from opensourcerouting/fix/coverity_link_local_capability
bgpd: Do not check for capability length for Link-Local Next Hop capability
| -rw-r--r-- | bgpd/bgp_open.c | 1 | ||||
| -rw-r--r-- | bgpd/bgp_packet.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index be04d87b74..e03239f014 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -1069,7 +1069,6 @@ static int bgp_capability_parse(struct peer *peer, size_t length, case CAPABILITY_CODE_ROLE: case CAPABILITY_CODE_SOFT_VERSION: case CAPABILITY_CODE_PATHS_LIMIT: - case CAPABILITY_CODE_LINK_LOCAL: /* Check length. */ if (caphdr.length < cap_minsizes[caphdr.code]) { zlog_info( diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 18cee6064a..5ac7c7176e 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -3782,7 +3782,6 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt, case CAPABILITY_CODE_ROLE: case CAPABILITY_CODE_SOFT_VERSION: case CAPABILITY_CODE_PATHS_LIMIT: - case CAPABILITY_CODE_LINK_LOCAL: if (hdr->length < cap_minsizes[hdr->code]) { zlog_info("%pBP: %s Capability length error: got %u, expected at least %u", peer, capability, hdr->length, |
