aboutsummaryrefslogtreecommitdiffstats
path: root/ui/text_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/text_import.c')
-rw-r--r--ui/text_import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/text_import.c b/ui/text_import.c
index 05fcc25b8f..374b5af283 100644
--- a/ui/text_import.c
+++ b/ui/text_import.c
@@ -522,6 +522,7 @@ write_current_packet (void)
memset(&pkthdr, 0, sizeof(struct wtap_pkthdr));
+ pkthdr.rec_type = REC_TYPE_PACKET;
pkthdr.ts.secs = (guint32)ts_sec;
pkthdr.ts.nsecs = ts_usec * 1000;
if (ts_fmt == NULL) { ts_usec++; } /* fake packet counter */