forked from osmocom/wireshark
EPL: Fix offset calculation
The offset was calculated too high, as it was added to itself and sizes were added multiple times Change-Id: I1a581e96e2ab66e40f5566074e8bd1089f55bdb0 Reviewed-on: https://code.wireshark.org/review/4049 Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
93cc6f004f
commit
f93c53efcb
|
@ -3039,9 +3039,7 @@ dissect_epl_sdo_command_read_by_index(proto_tree *epl_tree, tvbuff_t *tvb, packe
|
|||
val_to_str(segmented, epl_sdo_asnd_cmd_segmentation, "User Defined (%d)"));
|
||||
|
||||
size = tvb_reported_length_remaining(tvb, offset);
|
||||
offset += dissect_epl_payload ( epl_tree, tvb, pinfo, offset, size, EPL_ASND );
|
||||
|
||||
offset += size;
|
||||
offset = dissect_epl_payload ( epl_tree, tvb, pinfo, offset, size, EPL_ASND );
|
||||
}
|
||||
|
||||
return offset;
|
||||
|
|
Loading…
Reference in New Issue