fixed stupid mmistake causing large distant mesassages not to be split correctly

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6714 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-09-08 11:16:13 +00:00
parent 3879622fb9
commit ead05b9d9e

View File

@ -271,7 +271,7 @@ void p3MsgService::checkSizeAndSendMessage(RsMsgItem *msg)
item->msgFlags |= RS_MSG_FLAGS_PARTIAL ; item->msgFlags |= RS_MSG_FLAGS_PARTIAL ;
if(msg->msgFlags & RS_MSG_FLAGS_DISTANT) if(msg->msgFlags & RS_MSG_FLAGS_DISTANT)
sendPrivateMsgItem(msg) ; sendPrivateMsgItem(item) ;
else else
sendItem(item) ; sendItem(item) ;
} }
@ -1764,7 +1764,7 @@ bool p3MsgService::encryptMessage(const std::string& pgp_id,RsMsgItem *item)
#endif #endif
if(!_serialiser->serialise(item,&data[1+KEY_ID_SIZE],&rssize)) if(!_serialiser->serialise(item,&data[1+KEY_ID_SIZE],&rssize))
{ {
std::cerr << "(EE) p3MsgService::sendTurtleData(): Serialization error." << std::endl; std::cerr << "(EE) p3MsgService::encryptMessage(): Serialization error." << std::endl;
free(data) ; free(data) ;
return false; return false;
} }