aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/candump.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/candump.c')
-rw-r--r--wiretap/candump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/candump.c b/wiretap/candump.c
index 572dbc8c1a..28fda91107 100644
--- a/wiretap/candump.c
+++ b/wiretap/candump.c
@@ -86,6 +86,7 @@ candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg)
}
rec->rec_type = REC_TYPE_PACKET;
+ rec->block = wtap_block_create(WTAP_BLOCK_PACKET);
rec->presence_flags = WTAP_HAS_TS;
rec->ts = msg->ts;
rec->tsprec = WTAP_TSPREC_USEC;