mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
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:
parent
3879622fb9
commit
ead05b9d9e
@ -271,7 +271,7 @@ void p3MsgService::checkSizeAndSendMessage(RsMsgItem *msg)
|
||||
item->msgFlags |= RS_MSG_FLAGS_PARTIAL ;
|
||||
|
||||
if(msg->msgFlags & RS_MSG_FLAGS_DISTANT)
|
||||
sendPrivateMsgItem(msg) ;
|
||||
sendPrivateMsgItem(item) ;
|
||||
else
|
||||
sendItem(item) ;
|
||||
}
|
||||
@ -1764,7 +1764,7 @@ bool p3MsgService::encryptMessage(const std::string& pgp_id,RsMsgItem *item)
|
||||
#endif
|
||||
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) ;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user