mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:24:37 +00:00
bgpd: remove old/duplicate, and now out of order prefixlen test
This commit is contained in:
parent
f9fe627886
commit
e55281983e
@ -146,17 +146,17 @@ bgp_nlri_parse_vpn (struct peer *peer, struct attr *attr,
|
|||||||
pnt += BGP_ADDPATH_ID_LEN;
|
pnt += BGP_ADDPATH_ID_LEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fetch prefix length. */
|
||||||
|
prefixlen = *pnt++;
|
||||||
|
p.family = afi2family (packet->afi);
|
||||||
|
psize = PSIZE (prefixlen);
|
||||||
|
|
||||||
if (prefixlen < 88)
|
if (prefixlen < 88)
|
||||||
{
|
{
|
||||||
zlog_err ("prefix length is less than 88: %d", prefixlen);
|
zlog_err ("prefix length is less than 88: %d", prefixlen);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fetch prefix length. */
|
|
||||||
prefixlen = *pnt++;
|
|
||||||
p.family = afi2family (packet->afi);
|
|
||||||
psize = PSIZE (prefixlen);
|
|
||||||
|
|
||||||
/* sanity check against packet data */
|
/* sanity check against packet data */
|
||||||
if (prefixlen < VPN_PREFIXLEN_MIN_BYTES*8 || (pnt + psize) > lim)
|
if (prefixlen < VPN_PREFIXLEN_MIN_BYTES*8 || (pnt + psize) > lim)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user