2003-07-09 Paul Jakma <paul@dishone.st>
* ospfd/ospf_apiserver.c: check for NULL from ospf_lookup()
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 9416784..55fe576 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -87,7 +87,8 @@
struct ospf_interface *oi;
struct ospf *ospf;
- ospf = ospf_lookup ();
+ if (!(ospf = ospf_lookup ())
+ return NULL;
for (node = listhead (ospf->oiflist); node; nextnode (node))
{
@@ -108,7 +109,8 @@
struct ospf_interface *oi;
struct ospf *ospf;
- ospf = ospf_lookup ();
+ if (!(ospf = ospf_lookup ());
+ return NULL;
for (node = listhead (ospf->oiflist); node; nextnode (node))
{
@@ -1494,7 +1496,7 @@
{
options = LSA_OPTIONS_GET (area);
#ifdef HAVE_NSSA
- options |= LSA_NSSA_GET (area);
+ options |= LSA_OPTIONS_NSSA_GET (area);
#endif /* HAVE_NSSA */
}