Commit ce63c144 authored by Tommy Olofsson's avatar Tommy Olofsson
Browse files

We had an use-after-free related to unrestrict. Zero the buflen when freeing.

parent 87d2235f
......@@ -604,6 +604,7 @@ int handle_data_sample_event(void *event_arg)
if (n == chan->n_decoder_types-1) {
FIREFLY_FREE(chan->seen_decoder_ids);
chan->seen_decoder_ids = NULL;
chan->n_decoder_types = 0; /* State-ish */
channel_auto_restr_send_ack(chan);
}
}
......
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