mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 20:59:36 +00:00
[zebra] CID #31, guard against potential NULL return of route_node_lookup
2006-05-11 Paul Jakma <paul.jakma@sun.com> * interface.c: (if_delete_update) route_node_lookup may return NULL, should fix Coverity CID #31.
This commit is contained in:
parent
995b96515b
commit
beb5633607
@ -1,3 +1,8 @@
|
||||
2006-05-11 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* interface.c: (if_delete_update) route_node_lookup may return
|
||||
NULL, should fix Coverity CID #31.
|
||||
|
||||
2006-02-09 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* rib.h: (struct {rib,nexthop}) Rearrange fields to avoid
|
||||
|
@ -407,9 +407,9 @@ if_delete_update (struct interface *ifp)
|
||||
ifc = listgetdata (node);
|
||||
p = ifc->address;
|
||||
|
||||
if (p->family == AF_INET)
|
||||
if (p->family == AF_INET
|
||||
&& (rn = route_node_lookup (zebra_if->ipv4_subnets, p)))
|
||||
{
|
||||
rn = route_node_lookup (zebra_if->ipv4_subnets, p);
|
||||
route_unlock_node (rn);
|
||||
addr_list = (struct list *) rn->info;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user