mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing initialisation of local, not serialised msg meta data in NxsTestHub
This commit is contained in:
parent
dca7decf3f
commit
63c6629e57
@ -159,6 +159,13 @@ void rs_nxs_test::NxsTestHub::notifyNewMessages(const RsPeerId& pid,
|
|||||||
{
|
{
|
||||||
RsNxsMsg* msg = *it;
|
RsNxsMsg* msg = *it;
|
||||||
RsGxsMsgMetaData* meta = new RsGxsMsgMetaData();
|
RsGxsMsgMetaData* meta = new RsGxsMsgMetaData();
|
||||||
|
// local meta is not touched by the deserialisation routine
|
||||||
|
// have to initialise it
|
||||||
|
meta->mMsgStatus = 0;
|
||||||
|
meta->mMsgSize = 0;
|
||||||
|
meta->mChildTs = 0;
|
||||||
|
meta->recvTS = 0;
|
||||||
|
meta->validated = false;
|
||||||
bool ok = meta->deserialise(msg->meta.bin_data, &(msg->meta.bin_len));
|
bool ok = meta->deserialise(msg->meta.bin_data, &(msg->meta.bin_len));
|
||||||
toStore.insert(std::make_pair(msg, meta));
|
toStore.insert(std::make_pair(msg, meta));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user