From 8ca8683c705c76dc155521204ef098e6fe547696 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 20 Oct 1998 15:47:02 +0000 Subject: [PATCH] Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-) --- nest/rt-table.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nest/rt-table.c b/nest/rt-table.c index 7ec40113..06ee1d3d 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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