summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-20 17:47:02 +0200
committerMartin Mares <mj@ucw.cz>1998-10-20 17:47:02 +0200
commit8ca8683c705c76dc155521204ef098e6fe547696 (patch)
tree9756a42f00174be8f3cabeff0512d21972cff38b /nest
parentacc62f5e1d4a100ec0be5c73e928a041aa9a4f9d (diff)
downloadbird-8ca8683c705c76dc155521204ef098e6fe547696.tar
bird-8ca8683c705c76dc155521204ef098e6fe547696.zip
Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-table.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 7ec4011..06ee1d3 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