From 321ec8ae4dc3a923b1c963bee4103b4a94a949bd Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 3 Jun 2022 19:16:52 -0400 Subject: [PATCH] correct size for Ack block with ranges --- libi2pd/SSU2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 4072d691..c614a643 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -1487,7 +1487,7 @@ namespace transport } buf[7] = acnt; // acnt htobe16buf (buf + 1, 5 + numRanges*2); - return 8; + return 8 + numRanges*2; } size_t SSU2Session::CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize)