Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robotlab
firefly
Commits
49871223
Commit
49871223
authored
May 05, 2014
by
Erik Jansson
Browse files
Fix bug where enc_types pointer on channel was overwritten to always be NULL.
parent
39c27405
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/protocol/firefly_protocol_channel.c
View file @
49871223
...
...
@@ -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
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment