diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2020-03-06 08:25:58 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-03-06 14:38:48 +0000 |
commit | b31e9f3e2092abdf0c8a60133c0ca6b981806998 (patch) | |
tree | 535e75969011b761fea93b15e5d859d1c26ea99d /epan/dissectors/packet-wsp.c | |
parent | a58b3984613e408c8bdfeec06e58da5b7b2f039d (diff) |
wsp: Remove lwm2m.dm length check
Remove length check when detected x-wap lwm2m.dm because the CoAP
message is not always 15 bytes.
Change-Id: Ib1e58a997a906a6723abae6f86fe4306bd5061c6
Reviewed-on: https://code.wireshark.org/review/36310
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r-- | epan/dissectors/packet-wsp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c index 7da7d7c2a7..d70ed33ea0 100644 --- a/epan/dissectors/packet-wsp.c +++ b/epan/dissectors/packet-wsp.c @@ -5008,14 +5008,13 @@ dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } if (! found_match){ /* - * Try to dissect x-wap-application lwm2m.dm data as COaP + * Try to dissect x-wap-application lwm2m.dm data as CoAP * see docs: (page 141) * http://www.openmobilealliance.org/release/LightweightM2M/V1_0_2-20180209-A/OMA-TS-LightweightM2M-V1_0_2-20180209-A.pdf * header bytes should be: 0xAF, 0x9A */ if (tvb_get_guint8(tvb, headerStart + headerLength - 1) == 0xAF && /* x-wap app id */ - tvb_get_guint8(tvb, headerStart + headerLength) == 0x9A && /* x-wap app lwm2m.dm */ - tvb_reported_length(tmp_tvb) == 15 ){ + tvb_get_guint8(tvb, headerStart + headerLength) == 0x9A) { /* x-wap app lwm2m.dm */ call_dissector(coap_handle, tmp_tvb, pinfo, tree); } else if (! dissector_try_heuristic(heur_subdissector_list, |