Commit c1995e98 authored by Maria Matejka's avatar Maria Matejka
Browse files

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

parent c0e1f534
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);