mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-01 19:31:14 +00:00
Merge pull request #12884 from donaldsharp/flowspec_overflow
bgpd: Flowspec overflow issue
This commit is contained in:
commit
b1867d4292
@ -127,6 +127,13 @@ int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr,
|
||||
psize);
|
||||
return BGP_NLRI_PARSE_ERROR_PACKET_OVERFLOW;
|
||||
}
|
||||
|
||||
if (psize == 0) {
|
||||
flog_err(EC_BGP_FLOWSPEC_PACKET,
|
||||
"Flowspec NLRI length 0 which makes no sense");
|
||||
return BGP_NLRI_PARSE_ERROR_PACKET_OVERFLOW;
|
||||
}
|
||||
|
||||
if (bgp_fs_nlri_validate(pnt, psize, afi) < 0) {
|
||||
flog_err(
|
||||
EC_BGP_FLOWSPEC_PACKET,
|
||||
|
Loading…
Reference in New Issue
Block a user