From ead05b9d9e2db53e984be211dfc410c8d9f20f30 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 8 Sep 2013 11:16:13 +0000 Subject: [PATCH] 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 --- libretroshare/src/services/p3msgservice.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/services/p3msgservice.cc b/libretroshare/src/services/p3msgservice.cc index 52f170ca4..f5aeca62e 100644 --- a/libretroshare/src/services/p3msgservice.cc +++ b/libretroshare/src/services/p3msgservice.cc @@ -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; }