aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kafka.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2023-08-22 15:36:40 +0200
committerJohn Thacker <johnthacker@gmail.com>2023-08-23 11:06:50 +0000
commit7e7cd293720186ee0af4479e581d74c566112a66 (patch)
tree8bc06de50dac848dd4c6aca01018a7e10faafb41 /epan/dissectors/packet-kafka.c
parent7efedd6d880322c746f45274c1e8f490758820c0 (diff)
kakfa: fix sync_group_request missing version check for instance_id
Close #19290
Diffstat (limited to 'epan/dissectors/packet-kafka.c')
-rw-r--r--epan/dissectors/packet-kafka.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-kafka.c b/epan/dissectors/packet-kafka.c
index 455f344433..798f1c95f2 100644
--- a/epan/dissectors/packet-kafka.c
+++ b/epan/dissectors/packet-kafka.c
@@ -4975,8 +4975,10 @@ dissect_kafka_sync_group_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
&member_start, &member_len);
/* instance_id */
- offset = dissect_kafka_string(tree, hf_kafka_consumer_group_instance, tvb, pinfo, offset, api_version >= 4,
- NULL, NULL);
+ if (api_version >= 3) {
+ offset = dissect_kafka_string(tree, hf_kafka_consumer_group_instance, tvb, pinfo, offset, api_version >= 4,
+ NULL, NULL);
+ }
/* protocol_type */
if (api_version >= 5) {