From 24aff1575253872b8b2ac3e214b5b1158e9a7bca Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 15 Jul 2016 10:55:02 -0400 Subject: [PATCH] off by one --- NetDb.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NetDb.cpp b/NetDb.cpp index 32d71d7e..beafeaee 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -748,8 +748,7 @@ namespace data uint8_t numTags = sessionKey[32]; if (numTags > 0) { - sessionKey += 33; - const uint8_t * sessionTag = sessionKey + 32; // take first tag + const uint8_t * sessionTag = sessionKey + 33; // take first tag i2p::garlic::GarlicRoutingSession garlic (sessionKey, sessionTag); replyMsg = garlic.WrapSingleMessage (replyMsg); }