From 6fee2d3536c4b75bfbcdf9fa018f7d3b765561cb Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 14 Feb 2019 17:49:23 -0500 Subject: [PATCH] correct options szie --- libi2pd/Streaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 1f2c7634..4cd1b1bf 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -503,7 +503,7 @@ namespace stream uint8_t * signature = packet + size; // set it later memset (signature, 0, signatureLen); // zeroes for now size += signatureLen; // signature - htobe16buf (optionsSize, packet + size - optionsSize); // actual options size + htobe16buf (optionsSize, packet + size - 2 - optionsSize); // actual options size size += m_SendBuffer.Get (packet + size, STREAMING_MTU - size); // payload m_LocalDestination.GetOwner ()->Sign (packet, size, signature); }