forked from Mirror/frr
bgpd: Do not check for capability length for Link-Local Next Hop capability
Capability's length is 0 and this is not needed to check if it's multiplied by
X or there is a minimum length for that.
Fixes: db853cc97e
("bgpd: Implement Link-Local Next Hop capability")
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
2ef76a3350
commit
d3741f8437
|
@ -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(
|
||||
|
|
|
@ -3781,7 +3781,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 a new issue