From b786df7035f43bb5eb4f7bca980e3bf684e527b7 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 25 Feb 2000 14:26:54 +0000 Subject: Memory allocation in ospf_area changed. --- proto/ospf/topology.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto/ospf/topology.c') diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 60dbd4f..7de749d 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -46,10 +46,11 @@ addifa_rtlsa(struct ospf_iface *ifa) { po->areano++; oa=po->firstarea; - po->firstarea=sl_alloc(po->areaslab); + po->firstarea=mb_alloc(po->proto.pool, sizeof(struct ospf_area)); po->firstarea->next=oa; po->firstarea->areaid=ifa->area; po->firstarea->gr=ospf_top_new(po); + DBG("%s: New OSPF area \"%d\" added.\n", po->proto.name, ifa->area); } /* FIXME Go on, change router lsa, bits and so on... */ -- cgit v1.2.3