diff options
author | Simon Vans-Colina <simon@monzo.com> | 2017-07-17 18:35:02 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-07-18 03:23:23 +0000 |
commit | e934fad6389da228ae33e5fb83c29807a315ee77 (patch) | |
tree | 09665c673d82ca9fe1e87b4b37f5695ce0e854f8 /epan/dissectors/packet-cql.c | |
parent | 541b9a93871892b0ad1732406f59f2196ae76cf9 (diff) |
CQL: Fixes the dissector so PREPARE Results have the Query ID
Change-Id: I518335dc317ac5fb3c1339686579ff44b73c2546
Reviewed-on: https://code.wireshark.org/review/22675
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-cql.c')
-rw-r--r-- | epan/dissectors/packet-cql.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-cql.c b/epan/dissectors/packet-cql.c index 275b6e02f9..3740d68b46 100644 --- a/epan/dissectors/packet-cql.c +++ b/epan/dissectors/packet-cql.c @@ -1454,9 +1454,11 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi case CQL_RESULT_KIND_PREPARED: /* Query ID */ - proto_tree_add_item_ret_uint(metadata_subtree, hf_cql_short_bytes_length, tvb, offset, 2, ENC_BIG_ENDIAN, &bytes_length); + proto_tree_add_item_ret_uint(cql_subtree, hf_cql_short_bytes_length, tvb, offset, 2, ENC_BIG_ENDIAN, &bytes_length); offset += 2; - proto_tree_add_item(metadata_subtree, hf_cql_query_id, tvb, offset, bytes_length, ENC_NA); + proto_tree_add_item(cql_subtree, hf_cql_query_id, tvb, offset, bytes_length, ENC_NA); + offset += bytes_length; + break; |