insert check for protocol message
This commit is contained in:
parent
10faecd5cc
commit
04f0d3e8c8
1 changed files with 6 additions and 0 deletions
|
@ -468,6 +468,12 @@ bool CProtocol::EvaluateJitBufMes ( const CVector<uint8_t>& vecData )
|
||||||
const int iData =
|
const int iData =
|
||||||
static_cast<int> ( GetValFromStream ( vecData, iPos, 2 ) );
|
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
|
// invoke message action
|
||||||
emit ChangeJittBufSize ( iData );
|
emit ChangeJittBufSize ( iData );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue