mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
BFD work in progress.
Now it compiles and mostly works.
This commit is contained in:
@@ -103,7 +103,8 @@ lsab_alloc(struct proto_ospf *po, unsigned size)
|
||||
if (po->lsab_used > po->lsab_size)
|
||||
{
|
||||
po->lsab_size = MAX(po->lsab_used, 2 * po->lsab_size);
|
||||
po->lsab = mb_realloc(po->proto.pool, po->lsab, po->lsab_size);
|
||||
po->lsab = po->lsab ? mb_realloc(po->lsab, po->lsab_size):
|
||||
mb_alloc(po->proto.pool, po->lsab_size);
|
||||
}
|
||||
return ((byte *) po->lsab) + offset;
|
||||
}
|
||||
|
Reference in New Issue
Block a user