From c1995e98c0c0d87025e784f35d168d2390e8c752 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 23 Jul 2020 20:09:50 +0200 Subject: [PATCH] Don't allow the original node through in channel_copy_config() --- nest/proto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nest/proto.c b/nest/proto.c index 41b3a6b9..62e4e7c1 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -626,6 +626,7 @@ channel_copy_config(struct channel_config *src, struct proto_config *proto) struct channel_config *dst = cfg_alloc(src->channel->config_size); memcpy(dst, src, src->channel->config_size); + dst->n = (node) {}; add_tail(&proto->channels, &dst->n); CALL(src->channel->copy_config, dst, src);