0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Don't allow the original node through in channel_copy_config()

This commit is contained in:
Maria Matejka 2020-07-23 20:09:50 +02:00
parent c0e1f534c9
commit c1995e98c0

View 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);