summaryrefslogtreecommitdiff
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorpaul <paul>2003-04-13 20:20:53 +0000
committerpaul <paul>2003-04-13 20:20:53 +0000
commite05fba43875e86ba2ec6e3970e5ec3aa2d0e040c (patch)
treea04f2ab2869cb1915320ae9d30ff9d575ecee96e /ospfd/ospf_lsa.c
parentf894c3ad34ca6f2fa35d7e8cc35db3134c184764 (diff)
Author: amir
Date: 2003-04-10 14:32:31 +0200 (Thu, 10 Apr 2003) New Revision: 212 Modified: zebra-ag/trunk/ospfd/ospf_lsa.c Log: I've fixed a small opaque lsa bug which got triggered when deleting opaque lsa of type 11. It used area->ospf->.. when area was null. This was replaced by a ospf = ospf_lookyp(); ospf->...
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index d0cf56cd..0facaf08 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -2678,6 +2678,9 @@ struct ospf_lsa *
ospf_lsa_lookup (struct ospf_area *area, u_int32_t type,
struct in_addr id, struct in_addr adv_router)
{
+ struct ospf *ospf = ospf_lookup();
+ assert(ospf);
+
switch (type)
{
case OSPF_ROUTER_LSA:
@@ -2697,7 +2700,7 @@ ospf_lsa_lookup (struct ospf_area *area, u_int32_t type,
#ifdef HAVE_OPAQUE_LSA
case OSPF_OPAQUE_AS_LSA:
#endif /* HAVE_OPAQUE_LSA */
- return ospf_lsdb_lookup_by_id (area->ospf->lsdb, type, id, adv_router);
+ return ospf_lsdb_lookup_by_id (ospf->lsdb, type, id, adv_router);
break;
default:
break;