From fccbf88bdf5a6ddaf34785246fb86e49a61b28ea Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 12 May 2006 23:00:06 +0000 Subject: [ospfd] CID #27, fix missing NULL return check 2006-05-12 Paul Jakma * ospf_interface.c: (ospf_if_exists) Fix missing NULL return check on ospf_lookup, CID #27. --- ospfd/ospf_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ospfd/ospf_interface.c') diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 1264cac6..b94cfa3a 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -397,7 +397,8 @@ ospf_if_exists (struct ospf_interface *oic) struct ospf *ospf; struct ospf_interface *oi; - ospf = ospf_lookup (); + if ((ospf = ospf_lookup ()) == NULL) + return NULL; for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi)) if (oi == oic) -- cgit v1.2.3