Clear preamble if no timespec is given.

svn path=/trunk/; revision=46738
This commit is contained in:
Michael Tüxen 2012-12-25 17:45:04 +00:00
parent f8d48662c8
commit 4abfc13149
1 changed files with 4 additions and 1 deletions

View File

@ -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