Closed saygins closed 2 years ago
Hi, new_stream_list variable is defined at the beginning of the the update_template_streams function.
new_stream_list variable
update_template_streams
srtp_stream_t new_stream_list = NULL;
It is not used until the while loop
if (status) { /* free new allocations */ while (new_stream_list != NULL) { srtp_stream_t next = new_stream_list->next; srtp_stream_dealloc(new_stream_list, new_stream_template); new_stream_list = next; } srtp_stream_dealloc(new_stream_template, NULL); return status; }
So the condition will be always false. I think it was forgotten to assign a value to this variable before the while loop.
but this is inside a for (;;) {} loop, so it wont be set the first time, but can be set the second time around. Or does that not make sense ?
sorry, I didn't see, thanks.
Hi,
new_stream_list variable
is defined at the beginning of the theupdate_template_streams
function.srtp_stream_t new_stream_list = NULL;
It is not used until the while loop
So the condition will be always false. I think it was forgotten to assign a value to this variable before the while loop.