summaryrefslogtreecommitdiff
path: root/encryptedPacket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-06 17:10:00 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-06 17:10:00 +0000
commit6939a82c2108622a84aac4e3a425ed613d393912 (patch)
treee8bfd078da17764204dc77d8ad551f06ca76a2ec /encryptedPacket.cpp
parentreadded kd generate (diff)
fixed wrong payload length bug
Diffstat (limited to 'encryptedPacket.cpp')
-rw-r--r--encryptedPacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/encryptedPacket.cpp b/encryptedPacket.cpp
index a8e7a36..eb459e4 100644
--- a/encryptedPacket.cpp
+++ b/encryptedPacket.cpp
@@ -59,7 +59,7 @@ EncryptedPacket::~EncryptedPacket()
length_ = max_length_ + sizeof(struct HeaderStruct);
}
-void EncryptedPacket::setPayloadLength(u_int8_t payload_length)
+void EncryptedPacket::setPayloadLength(u_int32_t payload_length)
{
if( auth_tag_)
length_= payload_length + sizeof(struct HeaderStruct)+AUTHTAG_SIZE;