From 91cec2a12e137aebc55d4e7a901ed25c222025d3 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sat, 9 Mar 2013 13:47:08 +0000 Subject: 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 --- plugins/ethercat/packet-ams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ethercat') 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); } } } -- cgit v1.2.3