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:
Guy Harris 2011-11-17 02:29:26 +00:00
parent 6f2dc712b9
commit eacdf1d46f
1 changed files with 1 additions and 1 deletions

View File

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