Put back the check for dates that can be represented in DOS format the
[obnox/wireshark/wip.git] / wiretap / ngsniffer.c
index e515cffdecc698c42f7571b91b99f02347a5415a..73625b90bc9573e628f0c12a7267f329f850e942 100644 (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;