diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2017-04-12 19:36:27 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-04-13 01:16:17 +0000 |
commit | 6c096f31ac6bbe2f0b7e0fd43dddb5419a8b2a3d (patch) | |
tree | e3abb3a0485551fe1676193d35dd304aa04b22d3 | |
parent | d7320989a03e3ac5a21bc04a1d471be8584413d0 (diff) |
packet-epl.c: Fix bigger-than-actual offset being reported
dissect_epl_asnd_nmtdna returns the offset + 27,
adding that to the original offset isn't correct,
unless the offset was 0 to begin with, which isn't the case.
Change-Id: Id0d5043b23a83aef8d07a6f6ee3b70486d913e9f
Reviewed-on: https://code.wireshark.org/review/21056
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-epl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c index 66709f8672..1d3cfce660 100644 --- a/epan/dissectors/packet-epl.c +++ b/epan/dissectors/packet-epl.c @@ -2437,7 +2437,7 @@ dissect_epl_asnd_nmtcmd(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, case EPL_ASND_NMTCOMMAND_NMTDNA: /* This byte is reserved for the other NMT commands but some flags are placed in it for DNA */ offset -= 1; - offset += dissect_epl_asnd_nmtdna(epl_tree, tvb, pinfo, offset); + offset = dissect_epl_asnd_nmtdna(epl_tree, tvb, pinfo, offset); break; case EPL_ASND_NMTCOMMAND_NMTRESETNODE: |