diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-09 13:47:08 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-09 13:47:08 +0000 |
commit | 91cec2a12e137aebc55d4e7a901ed25c222025d3 (patch) | |
tree | 88e0b382a20c08ddbe8edb2a343228d3b6d045c0 /plugins/ethercat | |
parent | 1fbece78ab25244f9b476f9209c9716e14051e44 (diff) |
From Thomas Wiens via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8455
Don't add an extra 16 to offset, we've been updating it as we go. Fixes cases
where valid AMS packets were marked as malformed.
svn path=/trunk/; revision=48215
Diffstat (limited to 'plugins/ethercat')
-rw-r--r-- | plugins/ethercat/packet-ams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c index a3c0ce198a..42ca81643d 100644 --- a/plugins/ethercat/packet-ams.c +++ b/plugins/ethercat/packet-ams.c @@ -550,7 +550,7 @@ static gint dissect_ams(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi proto_tree_add_item(ams_adstree, hf_ams_adscbwritelength, tvb, offset, (int)sizeof(guint32), ENC_LITTLE_ENDIAN); offset+=(int)sizeof(guint32); - proto_tree_add_item(ams_adstree, hf_ams_adsdata, tvb, offset+16, ams_length-offset, ENC_NA); + proto_tree_add_item(ams_adstree, hf_ams_adsdata, tvb, offset, ams_length-offset, ENC_NA); } } } |