From 77687a70a2f67a952d6600adbda525799fb450dc Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 26 Nov 2014 11:54:35 -0500 Subject: [PATCH] adjust message length after alignment --- I2NPProtocol.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/I2NPProtocol.h b/I2NPProtocol.h index 900b1415..39e719c8 100644 --- a/I2NPProtocol.h +++ b/I2NPProtocol.h @@ -122,7 +122,10 @@ namespace tunnel { size_t rem = ((size_t)GetBuffer ()) % alignment; if (rem) + { offset += (alignment - rem); + len += (alignment - rem); + } } I2NPMessage& operator=(const I2NPMessage& other)