copy stream.

This commit is contained in:
Christopher Jeffrey 2014-10-22 18:10:53 -07:00
parent a766e381c3
commit efad654e36
1 changed files with 3 additions and 1 deletions

View File

@ -3934,7 +3934,9 @@ process_packet(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTim
}
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->strCommand = strdup(strCommand.c_str());
cur->next = NULL;