Commit 8ca8683c authored by Martin Mareš's avatar Martin Mareš

Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)

parent acc62f5e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment