]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bt.c
Update .gitignore for other configurations
[tcpdump] / print-bt.c
index 411642b48ca792a53fe55df26012ad4b650e9b51..d380770cf3622a1e265278db03941250a81ddcee 100644 (file)
@@ -54,7 +54,7 @@ bt_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *
        const bluetooth_h4_header* hdr = (const bluetooth_h4_header*)p;
 
        ndo->ndo_protocol = "bt_if";
-       if (caplen < BT_HDRLEN || length < BT_HDRLEN)
+       if (caplen < BT_HDRLEN)
                goto trunc;
        caplen -= BT_HDRLEN;
        length -= BT_HDRLEN;