diff options
-rw-r--r-- | text2pcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/text2pcap.c b/text2pcap.c index c2c342fa30..e1952e3acc 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -901,8 +901,11 @@ parse_preamble (void) * If no "-t" flag was specified, don't attempt to parse a packet * preamble to extract a time stamp. */ - if (ts_fmt == NULL) + if (ts_fmt == NULL) { + /* Clear Preamble */ + packet_preamble_len = 0; return; + } /* * Initialize to today localtime, just in case not all fields |