diff options
-rw-r--r-- | proto/ospf/ospf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index e8704a7..1805ac3 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -18,7 +18,7 @@ ospf_start(struct proto *p) /* Create graph of LSA's */ po->areano=1; /* FIXME should respect config! */ - po->firstarea=(struct ospf_area *)malloc(sizeof(struct ospf_area)); + po->firstarea=(struct ospf_area *)cfg_alloc(sizeof(struct ospf_area)); po->firstarea->gr=ospf_top_new(po); po->firstarea->next=NULL; po->firstarea->areaid=0; |