Commit c7b915d6 authored by Ondřej Filip's avatar Ondřej Filip
Browse files

Malloc() changed to cfg_alloc().

parent 9a4037d4
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment