From 02047488f18f711cabdd69046f3efd2c004c6af4 Mon Sep 17 00:00:00 2001 From: Juhani Puurula Date: Wed, 30 May 2018 15:25:06 +0300 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-thread.c') 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); -- cgit v1.2.3