From e3764bef379d2fe3e9bcfc7f93010b9b448adfad Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 2 Feb 2015 13:06:02 -0500 Subject: [PATCH] fixed incorect reply data parsing for DatabaseStore --- NetDb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NetDb.cpp b/NetDb.cpp index e9224c2c..9693f2dc 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -475,10 +475,9 @@ namespace data size_t offset = DATABASE_STORE_HEADER_SIZE; if (replyToken) { - auto deliveryStatus = CreateDeliveryStatusMsg (replyToken); - offset += 4; + auto deliveryStatus = CreateDeliveryStatusMsg (replyToken); uint32_t tunnelID = bufbe32toh (buf + offset); - offset += 32; + offset += 4; if (!tunnelID) // send response directly transports.SendMessage (buf + offset, deliveryStatus); else @@ -493,6 +492,7 @@ namespace data DeleteI2NPMessage (deliveryStatus); } } + offset += 32; if (context.IsFloodfill ()) {