Websocket: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ica45c5d316d04df977449a12f824c76642d6c4bd Reviewed-on: https://code.wireshark.org/review/8722 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
effa6fc214
commit
2be0042781
|
@ -352,7 +352,7 @@ dissect_websocket_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
|
|||
if (payload_length > 0) {
|
||||
/* Always unmask payload data before analysing it. */
|
||||
if (mask) {
|
||||
ti = proto_tree_add_item(ws_tree, hf_ws_masked_payload, tvb, payload_offset, payload_length, ENC_NA);
|
||||
proto_tree_add_item(ws_tree, hf_ws_masked_payload, tvb, payload_offset, payload_length, ENC_NA);
|
||||
tvb_payload = tvb_unmasked(tvb, pinfo, payload_offset, payload_length, masking_key);
|
||||
tvb_set_child_real_data_tvbuff(tvb, tvb_payload);
|
||||
add_new_data_source(pinfo, tvb_payload, "Unmasked data");
|
||||
|
|
Loading…
Reference in New Issue