Malloc() changed to cfg_alloc().
This commit is contained in:
parent
9a4037d408
commit
c7b915d68c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue