aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-07-16 15:10:42 -0700
committerGuy Harris <gharris@steve.local>2009-07-16 15:10:42 -0700
commit6de2dedb10df2f18db55e41f59b47824de314279 (patch)
tree80afe93d361e9438c6d3d7b5d596b075713b9a2c /pcap-linux.c
parent34e950492a8b40673297d0888fafc4f94689cd29 (diff)
Fix typo.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 5aced44..de14a7e 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -3027,8 +3027,8 @@ pcap_read_linux_mmap(pcap_t *handle, int max_packets, pcap_handler callback,
* Trim the snapshot length to be no longer than the
* specified snapshot length.
*/
- if (pcaphdr.snaplen > handle->snapshot)
- pcaphdr.snaplen = handle->snapshot;
+ if (pcaphdr.caplen > handle->snapshot)
+ pcaphdr.caplen = handle->snapshot;
/* pass the packet to the user */
pkts++;