]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-dag.c
Fencepost error.
[libpcap] / pcap-dag.c
index d006aa61ca15205e364791fa6de9829866954415..1a1ed18ff5b3e2a65f9fa593374e64bff9428424 100644 (file)
@@ -225,7 +225,7 @@ dag_erf_ext_header_count(uint8_t * erf, size_t len)
        do {
        
                /* sanity check we have enough bytes */
-               if ( len <= (24 + (hdr_num * 8)) )
+               if ( len < (24 + (hdr_num * 8)) )
                        return hdr_num;
 
                /* get the header type */