peektagged: set rec->block right after rec->rec_type.

That's how it's done in other files, and the two are somewhat connected
(the record type and block type are somewhat correlated).
This commit is contained in:
Guy Harris 2021-08-29 00:33:22 -07:00
parent 5e2fb6c000
commit 07416c01dc
1 changed files with 1 additions and 1 deletions

View File

@ -731,10 +731,10 @@ peektagged_read_packet(wtap *wth, FILE_T fh, wtap_rec *rec,
}
rec->rec_type = REC_TYPE_PACKET;
rec->block = wtap_block_create(WTAP_BLOCK_PACKET);
rec->presence_flags = WTAP_HAS_TS|WTAP_HAS_CAP_LEN;
rec->rec_header.packet_header.len = length;
rec->rec_header.packet_header.caplen = sliceLength;
rec->block = wtap_block_create(WTAP_BLOCK_PACKET);
if (saw_flags_and_status) {
guint32 flags = 0;
if (flags_and_status & FLAGS_HAS_CRC_ERROR)