mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
Don't allow the original node through in channel_copy_config()
This commit is contained in:
parent
c0e1f534c9
commit
c1995e98c0
@ -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);
|
struct channel_config *dst = cfg_alloc(src->channel->config_size);
|
||||||
|
|
||||||
memcpy(dst, src, src->channel->config_size);
|
memcpy(dst, src, src->channel->config_size);
|
||||||
|
dst->n = (node) {};
|
||||||
add_tail(&proto->channels, &dst->n);
|
add_tail(&proto->channels, &dst->n);
|
||||||
CALL(src->channel->copy_config, dst, src);
|
CALL(src->channel->copy_config, dst, src);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user