aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorBaşak Kalfa <basakkalfa@gmail.com>2019-11-05 03:28:37 -0800
committerAnders Broman <a.broman58@gmail.com>2019-11-05 13:26:28 +0000
commit2ce3ec5055bd828c3905a876b74ba3cd6e826e46 (patch)
tree1301f28e7bc02060e5ec3b4bbfd5b339c46b1ef7 /plugins
parent6500d8071ef988d39d4295ee2e464dbd7ffa1e3c (diff)
PROFINET: Padding in SRLData block is corrected.
According to specification, padding in SRLData block will be adapted to make the block unsigned32 aligned. 2 bytes padding is changed to unsigned32 aligned. Change-Id: I78729a491cd5245acaff07fe595664187c2bf39e Reviewed-on: https://code.wireshark.org/review/34979 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/epan/profinet/packet-dcerpc-pn-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/epan/profinet/packet-dcerpc-pn-io.c b/plugins/epan/profinet/packet-dcerpc-pn-io.c
index 8a23d8d2c8..6641119ff7 100644
--- a/plugins/epan/profinet/packet-dcerpc-pn-io.c
+++ b/plugins/epan/profinet/packet-dcerpc-pn-io.c
@@ -7342,7 +7342,7 @@ dissect_SRLData_block(tvbuff_t *tvb, int offset,
dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_RedundancyInfo, &RedundancyInfo);
/* bit 2 .. 15 reserved */
offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_RedundancyInfo_reserved, &RedundancyInfo);
- offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2);
+ offset = dissect_pn_align4(tvb, offset, pinfo, tree);
return offset;
}