mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 12:21:25 +00:00
bgpd: Send notification if AS4 capability failed to parse (malformed)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
722195d4ec
commit
02a5da440b
@ -626,7 +626,7 @@ static as_t bgp_capability_as4(struct peer *peer, struct capability_header *hdr)
|
|||||||
flog_err(EC_BGP_PKT_OPEN,
|
flog_err(EC_BGP_PKT_OPEN,
|
||||||
"%s AS4 capability has incorrect data length %d",
|
"%s AS4 capability has incorrect data length %d",
|
||||||
peer->host, hdr->length);
|
peer->host, hdr->length);
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
as_t as4 = stream_getl(BGP_INPUT(peer));
|
as_t as4 = stream_getl(BGP_INPUT(peer));
|
||||||
|
Loading…
Reference in New Issue
Block a user