Hi,
I found a bug in srtp_remove_stream.
This:
/* remove stream from the list */
last_stream->next = stream->next;
Does not work if there is only one stream in the list. You need something like:
/* remove stream from the list */
if (last_stream == stream){
// only one stream in list
session->stream_list = stream->next;
} else {
last_stream->next = stream->next;...
2008-10-24 19:40:36 UTC in libsrtp