Blame SOURCES/wireshark-1.10.14-CVE-2015-6246.patch

dbc6ab
diff --git a/epan/dissectors/packet-waveagent.c b/epan/dissectors/packet-waveagent.c
dbc6ab
index b43cbfb..0d32ae6 100644
dbc6ab
--- a/epan/dissectors/packet-waveagent.c
dbc6ab
+++ b/epan/dissectors/packet-waveagent.c
dbc6ab
@@ -528,21 +528,20 @@ static void dissect_wa_payload(guint32 starting_offset, proto_item *parent_tree,
dbc6ab
                 tag_len = tvb_get_ntohl(tvb, current_offset + 52);
dbc6ab
 
dbc6ab
                 if (tag_len != 0) {
dbc6ab
-                    const guint8  *tag_data_ptr;
dbc6ab
-                    guint32        isr;
dbc6ab
-
dbc6ab
-                    tag_data_ptr = tvb_get_ptr (tvb, offset + 36, tag_len);
dbc6ab
+                    guint32       isr;
dbc6ab
+                    guint8        isr_value;
dbc6ab
 
dbc6ab
                     for (isr = 0; isr < tag_len; isr++) {
dbc6ab
-                        if (tag_data_ptr[isr] == 0xFF){
dbc6ab
+                        isr_value = tvb_get_guint8(tvb, offset + 36 + isr);
dbc6ab
+                        if (isr_value == 0xFF){
dbc6ab
                             proto_tree_add_string (bss_tree, hf_waveagent_ifwlansupprates, tvb, offset + 36 + isr,
dbc6ab
                                                    1,
dbc6ab
                                                    "BSS requires support for mandatory features of HT PHY (IEEE 802.11"
dbc6ab
                                                    " - Clause 20)");
dbc6ab
                         } else {
dbc6ab
                             ep_strbuf_append_printf(sb, "%2.1f%s ",
dbc6ab
-                                      (tag_data_ptr[isr] & 0x7F) * 0.5,
dbc6ab
-                                      (tag_data_ptr[isr] & 0x80) ? "(B)" : "");
dbc6ab
+                                      (isr_value & 0x7F) * 0.5,
dbc6ab
+                                      (isr_value & 0x80) ? "(B)" : "");
dbc6ab
 
dbc6ab
                         }
dbc6ab
                     }