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:
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);
|
||||
|
||||
memcpy(dst, src, src->channel->config_size);
|
||||
dst->n = (node) {};
|
||||
add_tail(&proto->channels, &dst->n);
|
||||
CALL(src->channel->copy_config, dst, src);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user