From: Jonathan L. <jon...@us...> - 2010-05-27 20:26:16
|
Update of /cvsroot/srtp/srtp/srtp In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10980 Modified Files: srtp.c Log Message: Fix memory corruption if the first stream in a session is removed. (Bug #2192597, reported by Steve Kiser.) Index: srtp.c =================================================================== RCS file: /cvsroot/srtp/srtp/srtp/srtp.c,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** srtp.c 20 May 2010 22:10:20 -0000 1.32 --- srtp.c 27 May 2010 19:22:25 -0000 1.33 *************** *** 1465,1469 **** /* remove stream from the list */ ! last_stream->next = stream->next; /* deallocate the stream */ --- 1465,1473 ---- /* remove stream from the list */ ! if (last_stream == stream) ! /* stream was first in list */ ! session->stream_list = stream->next; ! else ! last_stream->next = stream->next; /* deallocate the stream */ |