ospf6d: null check (Coverity 23024)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
paco 2018-06-27 14:52:54 +02:00
parent 71a7b1f82f
commit 4872511153
No known key found for this signature in database
GPG key ID: FD112A8C7E6A5E4A

View file

@ -641,6 +641,11 @@ void ospf6_abr_originate_summary(struct ospf6_route *route)
if (route->type == OSPF6_DEST_TYPE_NETWORK) {
oa = ospf6_area_lookup(route->path.area_id, ospf6);
if (!oa) {
zlog_err("OSPFv6 area lookup failed");
return;
}
range = ospf6_route_lookup_bestmatch(&route->prefix,
oa->range_table);
if (range) {