aboutsummaryrefslogtreecommitdiff
path: root/sf-pcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-15 13:22:01 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-15 13:22:01 -0700
commite3ca98c216ce63462666ba37654637a2b729cfb1 (patch)
tree1c40d3b761ca870f5e9f43c86d12ab7353f1f4ea /sf-pcap.c
parent4bea271bf6f659da154059559143706cd7c65a95 (diff)
Add in a comment to clarify that we're not over the snapshot length.
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