Browse Source

fixed incorect reply data parsing for DatabaseStore

pull/157/head
orignal 10 years ago
parent
commit
e3764bef37
  1. 4
      NetDb.cpp

4
NetDb.cpp

@ -476,9 +476,8 @@ namespace data
if (replyToken) if (replyToken)
{ {
auto deliveryStatus = CreateDeliveryStatusMsg (replyToken); auto deliveryStatus = CreateDeliveryStatusMsg (replyToken);
offset += 4;
uint32_t tunnelID = bufbe32toh (buf + offset); uint32_t tunnelID = bufbe32toh (buf + offset);
offset += 32; offset += 4;
if (!tunnelID) // send response directly if (!tunnelID) // send response directly
transports.SendMessage (buf + offset, deliveryStatus); transports.SendMessage (buf + offset, deliveryStatus);
else else
@ -493,6 +492,7 @@ namespace data
DeleteI2NPMessage (deliveryStatus); DeleteI2NPMessage (deliveryStatus);
} }
} }
offset += 32;
if (context.IsFloodfill ()) if (context.IsFloodfill ())
{ {

Loading…
Cancel
Save