Commit 49871223 authored by Erik Jansson's avatar Erik Jansson
Browse files

Fix bug where enc_types pointer on channel was overwritten to always be NULL.

parent 39c27405
......@@ -217,12 +217,12 @@ void firefly_channel_internal_opened(struct firefly_channel *chan)
chan->state = FIREFLY_CHANNEL_OPEN;
chan->conn->actions->channel_opened(chan);
if (chan->auto_restrict) {
while (chan->enc_types) {
struct firefly_channel_encoder_type *t;
struct firefly_channel_encoder_type *t;
t = chan->enc_types;
chan->enc_types = t->next;
t = chan->enc_types;
while (t) {
t->register_func(chan->proto_encoder);
t = t->next;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment