summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 49d4c12..df80f79 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -147,7 +147,7 @@ void* sender(void* p)
encrypted_packet.setLength(MAX_PACKET_LENGTH);
// read packet from device
u_int32_t len = param->dev.read(plain_packet.getPayload(), plain_packet.getPayloadLength());
- plain_packet.setLength(len);
+ plain_packet.setPayloadLength(len);
std::cout << "plain_packet.getPayloadLength() = " << plain_packet.getPayloadLength() << std::endl;