summaryrefslogtreecommitdiff
path: root/plugins/ethercat
diff options
context:
space:
mode:
authorThomas Wiens <th.wiens@gmx.de>2015-05-30 13:43:00 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-05-30 12:12:59 +0000
commit28481cda0119de767ff1baba96b793c3690eb4bf (patch)
tree74cdbd23c3f6e99032d9e7fc8ebb95a568d7a7ac /plugins/ethercat
parenta461e23d0e0912f3b9771091abb6770efd0911e8 (diff)
downloadwireshark-28481cda0119de767ff1baba96b793c3690eb4bf.tar.gz
ams: fixed wrong offset calculation, adsstate has 2 bytes
Change-Id: I95813bb49dd9a51662bac521e82599c26de59e8e Reviewed-on: https://code.wireshark.org/review/8701 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'plugins/ethercat')
-rw-r--r--plugins/ethercat/packet-ams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c
index a3ab04a926..214a443abd 100644
--- a/plugins/ethercat/packet-ams.c
+++ b/plugins/ethercat/packet-ams.c
@@ -748,7 +748,7 @@ static gint dissect_ams_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
offset+=(int)sizeof(guint32);
proto_tree_add_item(ams_adstree, hf_ams_adsstate, tvb, offset, (int)sizeof(guint16), ENC_LITTLE_ENDIAN);
- offset+=(int)sizeof(guint32);
+ offset+=(int)sizeof(guint16);
proto_tree_add_item(ams_adstree, hf_ams_adsdevicestate, tvb, offset, (int)sizeof(guint16), ENC_LITTLE_ENDIAN);
}