diff options
author | Juhani Puurula <juhani.puurula@arm.com> | 2018-05-30 15:25:06 +0300 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-05-31 04:40:52 +0000 |
commit | 02047488f18f711cabdd69046f3efd2c004c6af4 (patch) | |
tree | b590b0ee4e1c7d68d02ab775eb5a6be89109b5c4 /epan/dissectors/packet-thread.c | |
parent | ff2881808865b68bed20534cb3fcdc6844575063 (diff) |
Thread dissecting for Coap payload: fix to token index
Would previously search for subdissector by second part of URI.
Subdissectors in hash table are indexed by first part and search
would return NULL.
Change-Id: I0af1c4800dd69eae78d51d752c3ac299d248ddf4
Reviewed-on: https://code.wireshark.org/review/27908
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-thread.c')
-rw-r--r-- | epan/dissectors/packet-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-thread.c b/epan/dissectors/packet-thread.c index bbdf65ad66..e11a606bda 100644 --- a/epan/dissectors/packet-thread.c +++ b/epan/dissectors/packet-thread.c @@ -2109,7 +2109,7 @@ dissect_thread_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d tokens = wmem_strsplit(wmem_packet_scope(), uri, "/", 3); if ((tokens[0] != NULL) && (tokens[1] != NULL)) { /* No need to create a subset as we are dissecting the tvb as it is */ - dissector_try_string(thread_coap_namespace, tokens[1], tvb, pinfo, tree, NULL); + dissector_try_string(thread_coap_namespace, tokens[0], tvb, pinfo, tree, NULL); } return tvb_captured_length(tvb); |