mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
Merge pull request #7114 from donaldsharp/tip_count
bgpd: Avoid memset when tip hash is empty
This commit is contained in:
commit
70d400cefa
@ -563,7 +563,7 @@ bool bgp_nexthop_self(struct bgp *bgp, afi_t afi, uint8_t type,
|
||||
if (addr)
|
||||
return true;
|
||||
|
||||
if (new_afi == AF_INET) {
|
||||
if (new_afi == AF_INET && hashcount(bgp->tip_hash)) {
|
||||
memset(&tmp_tip, 0, sizeof(struct tip_addr));
|
||||
tmp_tip.addr = attr->nexthop;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user