From 2bb177f23ff44430c24faf8bc17e82c4bf0fe9f3 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Aug 2014 20:34:27 +0000 Subject: new threading working, but only one crypto thread per direction possible yet --- src/anytun.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/anytun.cpp b/src/anytun.cpp index 6fec2d7..8cb9c43 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -158,6 +158,7 @@ void threadReadTunDeviceAndWriteToPlainInQueue(TunDevice* dev, Channelpop(&plain_packet); + plain_packet->setLength(MAX_PACKET_LENGTH); // cLog.msg(Log::PRIO_DEBUG) << "threadReadTunDeviceAndWriteToPlainInQueue after pop"; // read packet from device @@ -310,6 +311,7 @@ void threadReadSocketAndWriteToEncryptedInQueue( PacketSource*src, Channelpop(&encrypted_packet); + encrypted_packet->setLength(MAX_PACKET_LENGTH); PacketSourceEndpoint remote_end; encrypted_packet->withAuthTag(false); -- cgit v1.2.3