mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)
This commit is contained in:
parent
acc62f5e1d
commit
8ca8683c70
@ -203,10 +203,13 @@ rte_update(net *net, struct proto *p, rte *new)
|
||||
p->rte_remove(net, old);
|
||||
rte_free(old);
|
||||
}
|
||||
if (new)
|
||||
{
|
||||
new->lastmod = now;
|
||||
if (p->rte_insert)
|
||||
p->rte_insert(net, new);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
rte_discard(rte *old) /* Non-filtered route deletion, used during garbage collection */
|
||||
|
Loading…
Reference in New Issue
Block a user