mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed serialisation bug
This commit is contained in:
parent
9e182414c1
commit
f44ccbe756
@ -1877,13 +1877,11 @@ bool p3GxsCircles::pushCircleMembershipRequest(const RsGxsId& own_gxsid,const Rs
|
|||||||
s->time_out = 0 ; // means never
|
s->time_out = 0 ; // means never
|
||||||
s->subscription_type = RsGxsCircleSubscriptionRequestItem::SUBSCRIPTION_REQUEST_SUBSCRIBE ;
|
s->subscription_type = RsGxsCircleSubscriptionRequestItem::SUBSCRIPTION_REQUEST_SUBSCRIBE ;
|
||||||
|
|
||||||
// Serialise it into a base64 string
|
|
||||||
|
|
||||||
RsTemporaryMemory tmpmem(circle_id.serial_size() + own_gxsid.serial_size()) ;
|
RsTemporaryMemory tmpmem(circle_id.serial_size() + own_gxsid.serial_size()) ;
|
||||||
|
|
||||||
uint32_t off = 0 ;
|
uint32_t off = 0 ;
|
||||||
circle_id.serialise(tmpmem,tmpmem.size(),off) ;
|
circle_id.serialise(tmpmem,tmpmem.size(),off) ;
|
||||||
own_gxsid.serialise(tmpmem+off,tmpmem.size(),off) ;
|
own_gxsid.serialise(tmpmem,tmpmem.size(),off) ;
|
||||||
|
|
||||||
s->meta.mGroupId = RsGxsGroupId(circle_id) ;
|
s->meta.mGroupId = RsGxsGroupId(circle_id) ;
|
||||||
s->meta.mMsgId.clear();
|
s->meta.mMsgId.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user