diff options
author | anlan_cs <anlan_cs@tom.com> | 2021-12-23 03:51:55 +0100 |
---|---|---|
committer | anlan_cs <anlan_cs@tom.com> | 2021-12-23 03:52:30 +0100 |
commit | e146082ddc57184d627f54203238aabca10e3a25 (patch) | |
tree | f8bd5534ec9aa003906f8dbe813660354931f177 /ospf6d/ospf6_abr.c | |
parent | Merge pull request #8494 from donaldsharp/wfi_failures (diff) | |
download | frr-e146082ddc57184d627f54203238aabca10e3a25.tar.xz frr-e146082ddc57184d627f54203238aabca10e3a25.zip |
ospf6d: clean coverity warning of possible null pointer
Add assert to protect it.
Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r-- | ospf6d/ospf6_abr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 5d9e315ad..663b9b798 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( |