summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-20 15:47:02 +0000
committerMartin Mares <mj@ucw.cz>1998-10-20 15:47:02 +0000
commit8ca8683c705c76dc155521204ef098e6fe547696 (patch)
tree9756a42f00174be8f3cabeff0512d21972cff38b
parentacc62f5e1d4a100ec0be5c73e928a041aa9a4f9d (diff)
Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)
-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 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