alignment

This commit is contained in:
orignal 2014-11-26 21:42:14 -05:00
parent eb6b04d6c2
commit a8c08563f1
2 changed files with 2 additions and 1 deletions

View file

@ -132,6 +132,7 @@ namespace tunnel
void TunnelGatewayBuffer::CreateCurrentTunnelDataMessage ()
{
m_CurrentTunnelDataMsg = NewI2NPMessage ();
m_CurrentTunnelDataMsg->Align (12);
// we reserve space for padding
m_CurrentTunnelDataMsg->offset += TUNNEL_DATA_MSG_SIZE + sizeof (I2NPHeader);
m_CurrentTunnelDataMsg->len = m_CurrentTunnelDataMsg->offset;