insert check for protocol message

This commit is contained in:
Volker Fischer 2009-10-11 10:14:47 +00:00
parent 10faecd5cc
commit 04f0d3e8c8

View file

@ -468,6 +468,12 @@ bool CProtocol::EvaluateJitBufMes ( const CVector<uint8_t>& vecData )
const int iData =
static_cast<int> ( GetValFromStream ( vecData, iPos, 2 ) );
if ( ( iData < MIN_NET_BUF_SIZE_NUM_BL ) ||
( iData > MAX_NET_BUF_SIZE_NUM_BL ) )
{
return true;
}
// invoke message action
emit ChangeJittBufSize ( iData );