Browse Source

adjust message length after alignment

pull/113/head
orignal 10 years ago
parent
commit
77687a70a2
  1. 3
      I2NPProtocol.h

3
I2NPProtocol.h

@ -122,7 +122,10 @@ namespace tunnel
{ {
size_t rem = ((size_t)GetBuffer ()) % alignment; size_t rem = ((size_t)GetBuffer ()) % alignment;
if (rem) if (rem)
{
offset += (alignment - rem); offset += (alignment - rem);
len += (alignment - rem);
}
} }
I2NPMessage& operator=(const I2NPMessage& other) I2NPMessage& operator=(const I2NPMessage& other)

Loading…
Cancel
Save