summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/static/static.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index 7b22d49b..941e916f 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -643,6 +643,7 @@ static_copy_config(struct proto_config *dest, struct proto_config *src)
{
dnh = cfg_alloc(sizeof(struct static_route));
memcpy(dnh, snh, sizeof(struct static_route));
+ memset(&dnh->n, 0, sizeof(node));
if (!drt)
add_tail(&d->routes, &(dnh->n));