mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)
This commit is contained in:
@@ -203,9 +203,12 @@ rte_update(net *net, struct proto *p, rte *new)
|
||||
p->rte_remove(net, old);
|
||||
rte_free(old);
|
||||
}
|
||||
new->lastmod = now;
|
||||
if (p->rte_insert)
|
||||
p->rte_insert(net, new);
|
||||
if (new)
|
||||
{
|
||||
new->lastmod = now;
|
||||
if (p->rte_insert)
|
||||
p->rte_insert(net, new);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user