From: paco Date: Wed, 27 Jun 2018 12:52:54 +0000 (+0200) Subject: ospf6d: null check (Coverity 23024) X-Git-Tag: frr-6.1-dev~236^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=487251115360c64bbd18c0aa72d0a4ebb26f0f0c;p=matthieu%2Ffrr.git ospf6d: null check (Coverity 23024) Signed-off-by: F. Aragon --- diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index b3aa3b21d2..5398ea5054 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -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) {