Packet API must call Trailer::DoSerialize on end of trailer, not start of trailer
parent
abfdb4befc
commit
4bfd1c4a2a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue