]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't allow the original node through in channel_copy_config()
authorMaria Matejka <mq@jmq.cz>
Thu, 23 Jul 2020 18:09:50 +0000 (20:09 +0200)
committerMaria Matejka <mq@jmq.cz>
Thu, 23 Jul 2020 18:22:39 +0000 (20:22 +0200)
nest/proto.c

index 41b3a6b9ce37e1df2921a9ab6755eeddc12fa287..62e4e7c1e580a39be1796efcf31878e18e46a1bf 100644 (file)
@@ -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);