summaryrefslogtreecommitdiff
path: root/babeld/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'babeld/route.c')
-rw-r--r--babeld/route.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/babeld/route.c b/babeld/route.c
index 501dd1f4df..bc7590fb39 100644
--- a/babeld/route.c
+++ b/babeld/route.c
@@ -176,6 +176,7 @@ insert_route(struct babel_route *route)
resize_route_table(max_route_slots < 1 ? 8 : 2 * max_route_slots);
if(route_slots >= max_route_slots)
return NULL;
+ assert(routes);
route->next = NULL;
if(n < route_slots)
memmove(routes + n + 1, routes + n,