Merge pull request #2544 from pacovn/Coverity_1468510_Dereference_null_return_value

ospf6d: null check (Coverity 1468510)
This commit is contained in:
Jafar Al-Gharaibeh 2018-06-25 12:39:17 -04:00 committed by GitHub
commit d2722bf362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {