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 0dc43a0693
commit 6997937048
1 changed files with 1 additions and 1 deletions

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