diff options
author | paul <paul> | 2006-05-12 23:00:06 +0000 |
---|---|---|
committer | paul <paul> | 2006-05-12 23:00:06 +0000 |
commit | fccbf88bdf5a6ddaf34785246fb86e49a61b28ea (patch) | |
tree | c0900fedc7fe71b48e77c5351710baddfb8cabc5 /ospfd/ospf_interface.c | |
parent | 1d7c1f6b5048d175632da0d418b1318fbafb62bf (diff) | |
download | quagga-fccbf88bdf5a6ddaf34785246fb86e49a61b28ea.tar.bz2 quagga-fccbf88bdf5a6ddaf34785246fb86e49a61b28ea.tar.xz |
[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.
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r-- | ospfd/ospf_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |