OFF BY ONE

This commit is contained in:
Jeff Becker 2016-07-15 10:44:08 -04:00
parent 71cc4b5bf2
commit 586f241074
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

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