summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-09-15 13:21:21 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-09-15 13:21:21 +0300
commit9120498487b3cb16e7530d2295ea33312abb104e (patch)
tree7ff56e53bed27ac863d802933613c86b0cfafc66 /bgpd
parent9948e5acb2a6ffb8ea092ecab5f5777025c5dc41 (diff)
bgpd: fix coverity warning
CID 1506874. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_updgrp_adv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index 3b7ee8b0b6..96febcd5df 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)) {