Skip to content

Commit

Permalink
fixed incorect reply data parsing for DatabaseStore
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Feb 2, 2015
1 parent d7c5c24 commit e3764be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NetDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -493,6 +492,7 @@ namespace data
DeleteI2NPMessage (deliveryStatus);
}
}
offset += 32;

if (context.IsFloodfill ())
{
Expand Down

0 comments on commit e3764be

Please sign in to comment.