aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-epl.c
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2014-09-09 14:27:02 +0200
committerAnders Broman <a.broman58@gmail.com>2014-09-09 20:00:03 +0000
commitf93c53efcbd26b9533ef3390b577e464a3c257d7 (patch)
treeaec7f9394ac7a0dd43dd5198714532abfe0f9f6f /epan/dissectors/packet-epl.c
parent93cc6f004fff4216c05d7a13ae8d7ad6d490dd93 (diff)
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>
Diffstat (limited to 'epan/dissectors/packet-epl.c')
-rw-r--r--epan/dissectors/packet-epl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c
index fca51fb9d3..0fb89a9c72 100644
--- a/epan/dissectors/packet-epl.c
+++ b/epan/dissectors/packet-epl.c
@@ -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;