diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-09-16 14:03:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 14:03:25 +0200 |
commit | a8f67b1306d37d37176654e9b5761d3c68b13a57 (patch) | |
tree | 4f5b0dfe6d3bfa21db0a1d6f61970f6bfe34b0bf | |
parent | Merge pull request #9623 from donaldsharp/test_bgp_table (diff) | |
parent | bgpd: fix coverity warning (diff) | |
download | frr-a8f67b1306d37d37176654e9b5761d3c68b13a57.tar.xz frr-a8f67b1306d37d37176654e9b5761d3c68b13a57.zip |
Merge pull request #9614 from idryzhov/bgp-aspath-coverity
bgpd: fix coverity warning
-rw-r--r-- | bgpd/bgp_updgrp_adv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c index 3b7ee8b0b..96febcd5d 100644 --- a/bgpd/bgp_updgrp_adv.c +++ b/bgpd/bgp_updgrp_adv.c @@ -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)) { |