summaryrefslogtreecommitdiff
path: root/plugins/ethercat
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-08-15 02:06:49 +0000
committerEvan Huus <eapache@gmail.com>2013-08-15 02:06:49 +0000
commit80ea68ad78cb5a09276567e78d7808f81a98d96b (patch)
tree614a5be785b93056e6de5f67510832cbe2ad92e6 /plugins/ethercat
parentd9fd5d64097281dced408cf8c90399ab76a2018d (diff)
downloadwireshark-80ea68ad78cb5a09276567e78d7808f81a98d96b.tar.gz
As suggested by Volcke Mario, fixing
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9036 Don't change the length *and* the offset when adjusting for the ethercat header, just the offset is enough (the length is then right). svn path=/trunk/; revision=51360
Diffstat (limited to 'plugins/ethercat')
-rw-r--r--plugins/ethercat/packet-ams.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c
index 42ca81643d..ba64d4155c 100644
--- a/plugins/ethercat/packet-ams.c
+++ b/plugins/ethercat/packet-ams.c
@@ -414,7 +414,6 @@ static gint dissect_ams(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
{
if( TcpAdsParserHDR_Len > ams_length )
return offset;
- ams_length -= TcpAdsParserHDR_Len;
offset = TcpAdsParserHDR_Len;
}