summaryrefslogtreecommitdiff
path: root/print-bt.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-14 17:34:47 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-14 18:04:38 +0200
commit3976533f2cdbf4373a9ea71197aead3e5699aef0 (patch)
treec0b6a68780a712fe736f77874a77612925154300 /print-bt.c
parent6795da23af1f0df9013634d4d2d22a7f8fe24e93 (diff)
downloadtcpdump-3976533f2cdbf4373a9ea71197aead3e5699aef0.tar.gz
Remove some useless tests
Because packet length (length) >= capture length (caplen). (see the sanity checks in print.c, pretty_print_packet() function)
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;