diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2018-06-25 12:39:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-25 12:39:17 -0400 |
| commit | d2722bf362b211d347648c738e609d68d496f1e4 (patch) | |
| tree | 47f6e7fe22aca085c12e5977d58707742f1e2efa /ospf6d/ospf6_intra.c | |
| parent | 433b146e250221afdd72b226f1c3c2d2b97128ab (diff) | |
| parent | bacd094053235d74b6d8e755eb087211acd44936 (diff) | |
Merge pull request #2544 from pacovn/Coverity_1468510_Dereference_null_return_value
ospf6d: null check (Coverity 1468510)
Diffstat (limited to 'ospf6d/ospf6_intra.c')
| -rw-r--r-- | ospf6d/ospf6_intra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c index d99541ebad..7898b10905 100644 --- a/ospf6d/ospf6_intra.c +++ b/ospf6d/ospf6_intra.c @@ -1323,6 +1323,8 @@ static void ospf6_intra_prefix_update_route_origin(struct ospf6_route *oa_route) g_route = ospf6_route_lookup(&oa_route->prefix, ospf6->route_table); + assert(g_route); + for (ospf6_route_lock(g_route); g_route && ospf6_route_is_prefix(&oa_route->prefix, g_route); g_route = nroute) { |
