Merge pull request #302 from atsampson/acknsize
Check the size of PROTMESSID_ACKN messages
This commit is contained in:
commit
64c4eb4448
1 changed files with 6 additions and 0 deletions
|
@ -556,6 +556,12 @@ if ( rand() < ( RAND_MAX / 2 ) ) return false;
|
||||||
// special treatment for acknowledge messages
|
// special treatment for acknowledge messages
|
||||||
if ( iRecID == PROTMESSID_ACKN )
|
if ( iRecID == PROTMESSID_ACKN )
|
||||||
{
|
{
|
||||||
|
// check size
|
||||||
|
if ( vecbyMesBodyData.Size() != 2 )
|
||||||
|
{
|
||||||
|
return true; // return error code
|
||||||
|
}
|
||||||
|
|
||||||
// extract data from stream and emit signal for received value
|
// extract data from stream and emit signal for received value
|
||||||
int iPos = 0;
|
int iPos = 0;
|
||||||
const int iData =
|
const int iData =
|
||||||
|
|
Loading…
Reference in a new issue