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>
This commit is contained in:
Ahmad Fatoum 2017-04-12 19:36:27 +02:00 committed by Michael Mann
parent d7320989a0
commit 6c096f31ac
1 changed files with 1 additions and 1 deletions

View File

@ -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: