1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

off by one

This commit is contained in:
Jeff Becker 2016-07-15 10:55:02 -04:00
parent 338b9928f0
commit 24aff15752
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -748,8 +748,7 @@ namespace data
uint8_t numTags = sessionKey[32]; uint8_t numTags = sessionKey[32];
if (numTags > 0) if (numTags > 0)
{ {
sessionKey += 33; const uint8_t * sessionTag = sessionKey + 33; // take first tag
const uint8_t * sessionTag = sessionKey + 32; // take first tag
i2p::garlic::GarlicRoutingSession garlic (sessionKey, sessionTag); i2p::garlic::GarlicRoutingSession garlic (sessionKey, sessionTag);
replyMsg = garlic.WrapSingleMessage (replyMsg); replyMsg = garlic.WrapSingleMessage (replyMsg);
} }