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>
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;