]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix typo.
authorGuy Harris <[email protected]>
Thu, 16 Jul 2009 22:10:42 +0000 (15:10 -0700)
committerGuy Harris <[email protected]>
Thu, 16 Jul 2009 22:10:42 +0000 (15:10 -0700)
pcap-linux.c

index 5aced44b556bd1f7dd795ac08a5639309430d92b..de14a7ecd8c3cc41dfb30d1874e37c6626c4799e 100644 (file)
@@ -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++;