UDP message client accepts any sender id on incoming datagrams

This is a defect repair as it  was intended that the message id is the
sender identification but the  erroneous implementation enforced it to
be  the  receiver  identification   as  sent  with  previous  outgoing
messages.
This commit is contained in:
Bill Somerville 2019-04-01 11:01:39 +01:00
parent c7ec9b1927
commit 90afae422b

View File

@ -152,7 +152,7 @@ void MessageClient::impl::parse_message (QByteArray const& msg)
// message format is described in NetworkMessage.hpp
//
NetworkMessage::Reader in {msg};
if (OK == check_status (in) && id_ == in.id ()) // OK and for us
if (OK == check_status (in))
{
if (schema_ < in.schema ()) // one time record of server's
// negotiated schema