summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-13 19:06:50 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-09-13 18:05:34 +0200
commit205ff06ecaac9dacac90533b7eceb5752bca97fe (patch)
tree95a806203157f6034a29f314603c68af3c0cdbfd
parent24ac6e84a22018f48b8d9f64f765a32d70b7473a (diff)
Nest: Fix assert failed in lists.c
assertion 'n->prev == ((void *)0)' failed at ../lib/lists.c:79
-rw-r--r--nest/proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index f668c5cd..c51ce2b4 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);
+ memset(&dst->n, 0, sizeof(dst->n));
add_tail(&proto->channels, &dst->n);
CALL(src->channel->copy_config, dst, src);