summaryrefslogtreecommitdiff
path: root/print-bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-bt.c')
-rw-r--r--print-bt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-bt.c b/print-bt.c
index 411642b4..d380770c 100644
--- a/print-bt.c
+++ b/print-bt.c
@@ -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;