diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-14 17:34:47 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-14 18:04:38 +0200 |
commit | 3976533f2cdbf4373a9ea71197aead3e5699aef0 (patch) | |
tree | c0b6a68780a712fe736f77874a77612925154300 /print-bt.c | |
parent | 6795da23af1f0df9013634d4d2d22a7f8fe24e93 (diff) | |
download | tcpdump-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |