mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
Merge pull request #9614 from idryzhov/bgp-aspath-coverity
bgpd: fix coverity warning
This commit is contained in:
commit
a8f67b1306
@ -798,6 +798,9 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
|
||||
bgp_attr_default_set(&attr, BGP_ORIGIN_IGP);
|
||||
|
||||
/* make coverity happy */
|
||||
assert(attr.aspath);
|
||||
|
||||
attr.local_pref = bgp->default_local_pref;
|
||||
|
||||
if ((afi == AFI_IP6) || peer_cap_enhe(peer, afi, safi)) {
|
||||
|
Loading…
Reference in New Issue
Block a user