Browse Source

alignment for tunnel message AES decryption

pull/1274/head
orignal 6 years ago
parent
commit
328c2182c2
  1. 1
      libi2pd/NTCP2.cpp

1
libi2pd/NTCP2.cpp

@ -872,6 +872,7 @@ namespace transport @@ -872,6 +872,7 @@ namespace transport
break;
}
auto nextMsg = NewI2NPMessage (size);
nextMsg->Align (12); // for possible tunnel msg
nextMsg->len = nextMsg->offset + size + 7; // 7 more bytes for full I2NP header
memcpy (nextMsg->GetNTCP2Header (), frame + offset, size);
nextMsg->FromNTCP2 ();

Loading…
Cancel
Save