Ensure to break out of the loop when an unrecognised incoming MP property id is encountered in a packet.
This commit is contained in:
parent
11778f595f
commit
cbb7915e49
1 changed files with 3 additions and 0 deletions
|
@ -1418,6 +1418,9 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
|
|||
SG_LOG(SG_NETWORK, SG_DEBUG, "FGMultiplayMgr::ProcessPosMsg - "
|
||||
"message from " << MsgHdr->Callsign << " has unknown property id "
|
||||
<< id);
|
||||
// At this point the packet must be considered to be unreadable
|
||||
// as we have no way of knowing the length of this property (it could be a string)
|
||||
break;
|
||||
}
|
||||
}
|
||||
noprops:
|
||||
|
|
Loading…
Add table
Reference in a new issue