diff options
author | paco <paco@voltanet.io> | 2018-06-21 15:58:51 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-21 15:58:51 +0200 |
commit | e8a3a0a030b07513119a00cc79a304379d3a6e58 (patch) | |
tree | 0f48a3e3b44c19911ebb996433a064e0fee1fd46 /bgpd/bgp_aspath.c | |
parent | Merge pull request #2504 from pacovn/Coverity_23110_Dereference_after_null_check (diff) | |
download | frr-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.c | 2 |
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; |