mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-07 06:17:58 +00:00
ospf6d: null check (Coverity 23024)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
71a7b1f82f
commit
4872511153
@ -641,6 +641,11 @@ void ospf6_abr_originate_summary(struct ospf6_route *route)
|
|||||||
|
|
||||||
if (route->type == OSPF6_DEST_TYPE_NETWORK) {
|
if (route->type == OSPF6_DEST_TYPE_NETWORK) {
|
||||||
oa = ospf6_area_lookup(route->path.area_id, ospf6);
|
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,
|
range = ospf6_route_lookup_bestmatch(&route->prefix,
|
||||||
oa->range_table);
|
oa->range_table);
|
||||||
if (range) {
|
if (range) {
|
||||||
|
Loading…
Reference in New Issue
Block a user