forked from osmocom/wireshark
Put back the check for dates that can be represented in DOS format the
way it was *supposed* to be done, rather than backwards. svn path=/trunk/; revision=39895
This commit is contained in:
parent
6f2dc712b9
commit
eacdf1d46f
|
@ -2113,7 +2113,7 @@ ngsniffer_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
|
|||
else
|
||||
#endif
|
||||
tm = localtime(&phdr->ts.secs);
|
||||
if (tm != NULL) {
|
||||
if (tm != NULL && tm->tm_year >= 1980) {
|
||||
start_date = (tm->tm_year - (1980 - 1900)) << 9;
|
||||
start_date |= (tm->tm_mon + 1) << 5;
|
||||
start_date |= tm->tm_mday;
|
||||
|
|
Loading…
Reference in New Issue