summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/libpcap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index 063ca3ef58..0fb0ed9d45 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -765,9 +765,15 @@ static int libpcap_read_header(wtap *wth, FILE_T fh, int *err, gchar **err_info,
return -1;
}
+ /* Disabling because this is not a fatal error, and packets that have
+ * one such packet probably have thousands. For discussion, see
+ * https://www.wireshark.org/lists/wireshark-dev/201307/msg00076.html
+ * and related messages. */
+#if 0
if (hdr->hdr.incl_len > wth->snapshot_length) {
g_warning("pcap: File has packet larger than file's snapshot length.");
}
+#endif
return bytes_read;
}