mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 02:20:54 +00:00
Revert "bgpd: do not check attr in bgp_packet_attribute"
This reverts commit eb9e286511
.
This commit is contained in:
parent
73a4891ab3
commit
e7c0191e82
@ -4982,7 +4982,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
|
||||
}
|
||||
|
||||
/* BGP Link-State */
|
||||
if (attr->link_state) {
|
||||
if (attr && attr->link_state) {
|
||||
stream_putc(s, BGP_ATTR_FLAG_OPTIONAL);
|
||||
stream_putc(s, BGP_ATTR_LINK_STATE);
|
||||
stream_putc(s, attr->link_state->length);
|
||||
|
Loading…
Reference in New Issue
Block a user