Merge branch 'v0.6-GxsTransport' into qmlapp_pex_alpha

This commit is contained in:
Gioacchino Mazzurco 2017-05-15 19:16:08 +02:00
commit de9a44fac7

View File

@ -478,11 +478,12 @@ bool p3GxsTrans::dispatchDecryptedMail( const RsGxsId& authorId,
} }
GxsTransSubServices rsrvc = static_cast<GxsTransSubServices>(csri); GxsTransSubServices rsrvc = static_cast<GxsTransSubServices>(csri);
uint32_t rcptsize = decrypted_data_size; uint32_t rcptsize = decrypted_data_size - offset;
RsNxsTransPresignedReceipt* receipt = RsNxsTransPresignedReceipt* receipt =
static_cast<RsNxsTransPresignedReceipt*>( static_cast<RsNxsTransPresignedReceipt*>(
RsGxsTransSerializer().deserialise( RsNxsSerialiser(RS_SERVICE_TYPE_GXS_TRANS).deserialise(
const_cast<uint8_t*>(decrypted_data), &rcptsize ) ); const_cast<uint8_t*>(&decrypted_data[offset]), &rcptsize ));
offset += rcptsize;
if(!receipt) if(!receipt)
{ {
std::cerr << "p3GxsTrans::dispatchDecryptedMail(...) (EE) fatal error " std::cerr << "p3GxsTrans::dispatchDecryptedMail(...) (EE) fatal error "