summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
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