1
0
Fork 0

Ensure to break out of the loop when an unrecognised incoming MP property id is encountered in a packet.

This commit is contained in:
Richard Harrison 2017-02-16 18:30:17 +01:00
parent 11778f595f
commit cbb7915e49

View file

@ -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: