Packet API must call Trailer::DoSerialize on end of trailer, not start of trailer

Mathieu Lacage 2007-06-01 11:37:19 +02:00
parent abfdb4befc
commit 4bfd1c4a2a
1 changed files with 0 additions and 1 deletions

View File

@ -307,7 +307,6 @@ Packet::AddTrailer (T const &trailer)
uint32_t size = trailer.GetSize ();
m_buffer.AddAtEnd (size);
Buffer::Iterator start = m_buffer.End ();
start.Prev (size);
trailer.Serialize (start);
m_history.AddTrailer (trailer, size);
}