mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-10 16:29:27 -04:00
added missing initialisation of local, not serialised msg meta data in NxsTestHub
This commit is contained in:
parent
dca7decf3f
commit
63c6629e57
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue