copy stream.
This commit is contained in:
parent
a766e381c3
commit
efad654e36
|
@ -3934,7 +3934,9 @@ process_packet(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTim
|
||||||
}
|
}
|
||||||
|
|
||||||
cur->pfrom = pfrom;
|
cur->pfrom = pfrom;
|
||||||
cur->vRecv = &vRecv;
|
//cur->vRecv = &vRecv;
|
||||||
|
CDataStream *vRecv_ = new CDataStream(vRecv.begin(), vRecv.end(), vRecv.GetType(), vRecv.GetVersion());
|
||||||
|
cur->vRecv = vRecv_;
|
||||||
cur->nTimeReceived = nTimeReceived;
|
cur->nTimeReceived = nTimeReceived;
|
||||||
cur->strCommand = strdup(strCommand.c_str());
|
cur->strCommand = strdup(strCommand.c_str());
|
||||||
cur->next = NULL;
|
cur->next = NULL;
|
||||||
|
|
Loading…
Reference in New Issue