From: Maria Matejka Date: Thu, 23 Jul 2020 18:09:50 +0000 (+0200) Subject: Don't allow the original node through in channel_copy_config() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1995e98c0c0d87025e784f35d168d2390e8c752;p=thirdparty%2Fbird.git Don't allow the original node through in channel_copy_config() --- diff --git a/nest/proto.c b/nest/proto.c index 41b3a6b9c..62e4e7c1e 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);