aboutsummaryrefslogtreecommitdiff
path: root/sf-pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sf-pcap.c')
-rw-r--r--sf-pcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sf-pcap.c b/sf-pcap.c
index 40eab03d..b493f4a9 100644
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -646,6 +646,9 @@ pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
*/
hdr->caplen = p->snapshot;
} else {
+ /*
+ * The packet is within the snapshot length for this file.
+ */
if (hdr->caplen > p->bufsize) {
/*
* Grow the buffer to the next power of 2, or