mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
[ospfd] CID #27, fix missing NULL return check
2006-05-12 Paul Jakma <paul.jakma@sun.com> * ospf_interface.c: (ospf_if_exists) Fix missing NULL return check on ospf_lookup, CID #27.
This commit is contained in:
parent
70461d7934
commit
e43be0edb7
@ -5,6 +5,8 @@
|
|||||||
functionality which is never used, hence fixing Coverity CID
|
functionality which is never used, hence fixing Coverity CID
|
||||||
#29.
|
#29.
|
||||||
(struct lsa_action) remove unused member.
|
(struct lsa_action) remove unused member.
|
||||||
|
* ospf_interface.c: (ospf_if_exists) Fix missing NULL return
|
||||||
|
check on ospf_lookup, CID #27.
|
||||||
|
|
||||||
2006-05-11 Paul Jakma <paul.jakma@sun.com>
|
2006-05-11 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
|
@ -397,7 +397,8 @@ ospf_if_exists (struct ospf_interface *oic)
|
|||||||
struct ospf *ospf;
|
struct ospf *ospf;
|
||||||
struct ospf_interface *oi;
|
struct ospf_interface *oi;
|
||||||
|
|
||||||
ospf = ospf_lookup ();
|
if ((ospf = ospf_lookup ()) == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
|
for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
|
||||||
if (oi == oic)
|
if (oi == oic)
|
||||||
|
Loading…
Reference in New Issue
Block a user