aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-08-29 00:33:22 -0700
committerGuy Harris <gharris@sonic.net>2021-08-29 00:33:22 -0700
commit07416c01dc676ce82a683f6d6d7e39587a0a7574 (patch)
treee49f6a2ea2219bd9103775f96e6aa38ea624b655 /wiretap
parent5e2fb6c000b58ea0b517de662d0019c48da49734 (diff)
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).
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/peektagged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/peektagged.c b/wiretap/peektagged.c
index a4f3e054f8..f7d940d690 100644
--- a/wiretap/peektagged.c
+++ b/wiretap/peektagged.c
@@ -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)