mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
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:
parent
1182f26489
commit
e146082ddc
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user