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

This commit is contained in:
Martin Mares 1998-10-20 15:47:02 +00:00
parent acc62f5e1d
commit 8ca8683c70

View file

@ -203,9 +203,12 @@ rte_update(net *net, struct proto *p, rte *new)
p->rte_remove(net, old); p->rte_remove(net, old);
rte_free(old); rte_free(old);
} }
new->lastmod = now; if (new)
if (p->rte_insert) {
p->rte_insert(net, new); new->lastmod = now;
if (p->rte_insert)
p->rte_insert(net, new);
}
} }
void void