1
0
Fork 0

Multiplayer packet handling bugfix;

Unknown property ID causes break out of the loop to ensure that no further properties are processed from the incoming packet
This commit is contained in:
Richard Harrison 2017-02-16 18:39:38 +01:00
parent 4a156fe0b0
commit 36fd6466b7

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: