summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-21 15:58:51 +0200
committerpaco <paco@voltanet.io>2018-06-21 15:58:51 +0200
commite8a3a0a030b07513119a00cc79a304379d3a6e58 (patch)
tree0f48a3e3b44c19911ebb996433a064e0fee1fd46 /bgpd/bgp_aspath.c
parentMerge pull request #2504 from pacovn/Coverity_23110_Dereference_after_null_check (diff)
downloadfrr-e8a3a0a030b07513119a00cc79a304379d3a6e58.tar.xz
frr-e8a3a0a030b07513119a00cc79a304379d3a6e58.zip
bgpd: null check (Coverity 23106)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index e02617691..05e67baa8 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1632,7 +1632,7 @@ struct aspath *aspath_reconcile_as4(struct aspath *aspath,
struct aspath *newpath = NULL, *mergedpath;
int hops, cpasns = 0;
- if (!aspath)
+ if (!aspath || !as4path)
return NULL;
seg = aspath->segments;