[Opalvoip-svn] SF.net SVN: opalvoip:[28603] opal/branches/v3_12/src/rtp/rtpconn.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2012-11-27 02:24:54
|
Revision: 28603 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=28603&view=rev Author: rjongbloed Date: 2012-11-27 02:24:47 +0000 (Tue, 27 Nov 2012) Log Message: ----------- Fixed assert in SRTP session creation when only have one media type and one crypto suite. Thanks Diego Busacca. Modified Paths: -------------- opal/branches/v3_12/src/rtp/rtpconn.cxx Modified: opal/branches/v3_12/src/rtp/rtpconn.cxx =================================================================== --- opal/branches/v3_12/src/rtp/rtpconn.cxx 2012-11-27 02:23:23 UTC (rev 28602) +++ opal/branches/v3_12/src/rtp/rtpconn.cxx 2012-11-27 02:24:47 UTC (rev 28603) @@ -138,7 +138,7 @@ const PStringArray cryptoSuites = endpoint.GetMediaCryptoSuites(); - vector<bool> openedMediaSessions(allMediaTypes.size()*cryptoSuites.GetSize()); + vector<bool> openedMediaSessions(allMediaTypes.size()*cryptoSuites.GetSize()+1); for (iterMediaType = allMediaTypes.begin(); iterMediaType != allMediaTypes.end(); ++iterMediaType) { const OpalMediaType & mediaType = *iterMediaType; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |