summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-25 13:09:34 +0200
committerpaco <paco@voltanet.io>2018-06-25 13:09:34 +0200
commitbacd094053235d74b6d8e755eb087211acd44936 (patch)
tree2d45faefdcb63ef534ca3ab341dc41e87a4a9113 /ospf6d
parentMerge pull request #2520 from donaldsharp/privs_smivs (diff)
downloadfrr-bacd094053235d74b6d8e755eb087211acd44936.tar.xz
frr-bacd094053235d74b6d8e755eb087211acd44936.zip
ospf6d: null check (Coverity 1468510)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_intra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c
index d99541eba..7898b1090 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) {