aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee80211.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-10-25 09:06:33 -0700
committerGerald Combs <gerald@wireshark.org>2022-10-25 09:06:33 -0700
commit708da485267804865278e43960495446a2c06329 (patch)
treede79185462d4a88a7b2e220d73ac28b6189e6b5c /epan/dissectors/packet-ieee80211.c
parente7a4f4b2e3de4883a8e3a742a367a4e107b2c68a (diff)
IEEE 802.11: Fix a length check.
Fix a length check issue introduced in 85a9e05c52.
Diffstat (limited to 'epan/dissectors/packet-ieee80211.c')
-rw-r--r--epan/dissectors/packet-ieee80211.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c
index c733afedd2..0eca71118d 100644
--- a/epan/dissectors/packet-ieee80211.c
+++ b/epan/dissectors/packet-ieee80211.c
@@ -8878,7 +8878,6 @@ dissect_dscp_policy_response(tvbuff_t *tvb, packet_info *pinfo,
int start_offset = offset;
guint8 count;
wmem_strbuf_t *status_buf = wmem_strbuf_new_label(pinfo->pool);
- guint sts_len = 0;
int i;
proto_tree_add_bitmask(tree, tvb, offset,
@@ -8903,7 +8902,7 @@ dissect_dscp_policy_response(tvbuff_t *tvb, packet_info *pinfo,
i);
proto_tree_add_item(status_tree, hf_ieee80211_dscp_policy_id, tvb,
offset, 1, ENC_NA);
- if (sts_len == 0) {
+ if (wmem_strbuf_get_len(status_buf) == 0) {
wmem_strbuf_append_printf(status_buf, "%u:", scsid);
} else {
wmem_strbuf_append_printf(status_buf, " %u:", scsid);