mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 22:50:14 +00:00
Merge pull request #17106 from louis-6wind/fix-bmp-converity
bgpd: fix bmp coverity issue 1600779
This commit is contained in:
commit
0aef4e4041
@ -489,7 +489,7 @@ static struct stream *bmp_peerstate(struct peer *peer, bool down)
|
||||
&uptime_real);
|
||||
|
||||
/* Local Address (16 bytes) */
|
||||
if (!peer->su_local || is_locrib)
|
||||
if (is_locrib)
|
||||
stream_put(s, 0, 16);
|
||||
else if (peer->su_local->sa.sa_family == AF_INET6)
|
||||
stream_put(s, &peer->su_local->sin6.sin6_addr, 16);
|
||||
|
Loading…
Reference in New Issue
Block a user