mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
Merge pull request #14260 from opensourcerouting/fix/do_not_process_nlri_if_attribute_len_is_0
bgpd: Do not process NLRIs if the attribute length is zero
This commit is contained in:
commit
42016422ce
@ -2049,7 +2049,7 @@ static int bgp_update_receive(struct peer *peer, bgp_size_t size)
|
|||||||
/* Network Layer Reachability Information. */
|
/* Network Layer Reachability Information. */
|
||||||
update_len = end - stream_pnt(s);
|
update_len = end - stream_pnt(s);
|
||||||
|
|
||||||
if (update_len) {
|
if (update_len && attribute_len) {
|
||||||
/* Set NLRI portion to structure. */
|
/* Set NLRI portion to structure. */
|
||||||
nlris[NLRI_UPDATE].afi = AFI_IP;
|
nlris[NLRI_UPDATE].afi = AFI_IP;
|
||||||
nlris[NLRI_UPDATE].safi = SAFI_UNICAST;
|
nlris[NLRI_UPDATE].safi = SAFI_UNICAST;
|
||||||
|
Loading…
Reference in New Issue
Block a user