mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Malloc() changed to cfg_alloc().
This commit is contained in:
parent
9a4037d408
commit
c7b915d68c
@ -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 New Issue
Block a user