From 624c46f9259effec9d15cffc1a348aebadd5467a Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 28 Jun 2022 16:09:13 -0400 Subject: [PATCH] correct msg offset for follow-on fragment --- libi2pd/SSU2Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index 1ff3fa5a..92d9ae83 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -1903,7 +1903,7 @@ namespace transport buf[0] = eSSU2BlkFirstFragment; htobe16buf (buf + 1, msgLen); // size memcpy (buf + 3, msgBuf, msgLen); - msg->offset = (msgBuf - buf) + msgLen; + msg->offset = (msgBuf - msg->buf) + msgLen; return msgLen + 3; }