From: Robert J. <rjo...@us...> - 2009-03-27 01:54:46
|
Update of /cvsroot/openh323/openh323/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6382/src Modified Files: Tag: openh323_plugins h323caps.cxx Log Message: Fixed issue where an invlid entry in incoming TCS can be processed and cause incorrect codec selection later. Now does not include a TCS entry if it is not legal. Index: h323caps.cxx =================================================================== RCS file: /cvsroot/openh323/openh323/src/h323caps.cxx,v retrieving revision 1.105.2.12 retrieving revision 1.105.2.13 diff -C2 -d -r1.105.2.12 -r1.105.2.13 *** h323caps.cxx 21 Dec 2007 02:51:28 -0000 1.105.2.12 --- h323caps.cxx 27 Mar 2009 01:30:46 -0000 1.105.2.13 *************** *** 28,31 **** --- 28,34 ---- * * $Log$ + * Revision 1.105.2.13 2009/03/27 01:30:46 rjongbloed + * Fixed issue where an invlid entry in incoming TCS can be processed and cause incorrect codec selection later. Now does not include a TCS entry if it is not legal. + * * Revision 1.105.2.12 2007/12/21 02:51:28 rjongbloed * Fixed DLL compatibility of media option name constants. *************** *** 1111,1115 **** if (param.m_parameterValue.GetTag() == tag) { ! ((OpalMediaOptionUnsigned &)option).SetValue((const PASN_Integer &)param.m_parameterValue); break; } --- 1114,1124 ---- if (param.m_parameterValue.GetTag() == tag) { ! unsigned newValue = (const PASN_Integer &)param.m_parameterValue; ! OpalMediaOptionUnsigned & intOption = (OpalMediaOptionUnsigned &)option; ! if (!intOption.SetValue(newValue)) { ! PTRACE(2, "Invalid generic parameter value (" << newValue ! << ") for option \"" << option.GetName() << "\" (" << option.GetClass() << ')'); ! return FALSE; ! } break; } |