mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
Merge pull request #18068 from opensourcerouting/fix/coverity_link_local_capability
bgpd: Do not check for capability length for Link-Local Next Hop capability
This commit is contained in:
commit
418d0064bc
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user