ospf6d: clean coverity warning of possible null pointer

Add assert to protect it.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
This commit is contained in:
anlan_cs 2021-12-22 21:51:55 -05:00
parent 1182f26489
commit e146082ddc

View File

@ -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(