diff --git a/Destination.cpp b/Destination.cpp index dce43fcf..74c8d410 100644 --- a/Destination.cpp +++ b/Destination.cpp @@ -177,6 +177,7 @@ namespace stream if (buf[9] == 6) // streaming protocol { // unzip it + CryptoPP::Gunzip m_Decompressor; m_Decompressor.Put (buf, length); m_Decompressor.MessageEnd(); Packet * uncompressed = new Packet; @@ -202,6 +203,7 @@ namespace stream I2NPMessage * StreamingDestination::CreateDataMessage (const uint8_t * payload, size_t len) { I2NPMessage * msg = NewI2NPShortMessage (); + CryptoPP::Gzip m_Compressor; if (len <= COMPRESSION_THRESHOLD_SIZE) m_Compressor.SetDeflateLevel (CryptoPP::Gzip::MIN_DEFLATE_LEVEL); else diff --git a/Destination.h b/Destination.h index 2673eb2a..04efff9b 100644 --- a/Destination.h +++ b/Destination.h @@ -65,8 +65,8 @@ namespace stream std::function m_Acceptor; - CryptoPP::Gzip m_Compressor; - CryptoPP::Gunzip m_Decompressor; + //CryptoPP::Gzip m_Compressor; + //CryptoPP::Gunzip m_Decompressor; }; class StreamingDestinations