From: anlan_cs Date: Thu, 23 Dec 2021 02:51:55 +0000 (-0500) Subject: ospf6d: clean coverity warning of possible null pointer X-Git-Tag: base_8.2~98^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F10259%2Fhead;p=mirror%2Ffrr.git ospf6d: clean coverity warning of possible null pointer Add assert to protect it. Signed-off-by: anlan_cs --- diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 5d9e315adb..663b9b7982 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -451,6 +451,8 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route, /* Do not generate if area is NSSA */ route_area = ospf6_area_lookup(route->path.area_id, area->ospf6); + assert(route_area); + if (IS_AREA_NSSA(route_area)) { if (is_debug) zlog_debug(