diff options
author | Jonathan Fleming <jonathanfleming135@gmail.com> | 2019-02-22 14:28:39 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-02-24 23:16:41 +0000 |
commit | 7a48220542eff2be6903910acd5e8a412b3ce913 (patch) | |
tree | 6e214c36dbe3222d0c6a7da66fc808dc797279a5 /epan/dissectors | |
parent | b3f6dbbb5bcce3dd7f16df0b38e96700c4a9377f (diff) |
Fixed a bug found in the BACnet-APDU dissector
Bug: 15530
Change-Id: I1f9f84560b8cc288796f87cc0434bd957ce72aad
Reviewed-on: https://code.wireshark.org/review/32167
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-bacapp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c index 939875e6c5..942921d9da 100644 --- a/epan/dissectors/packet-bacapp.c +++ b/epan/dissectors/packet-bacapp.c @@ -8528,7 +8528,7 @@ fAbstractSyntaxNType(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint fSessionKey(tvb, pinfo, tree, offset); break; case 77: /* object-name */ - fObjectName(tvb, pinfo, tree, offset); + offset = fObjectName(tvb, pinfo, tree, offset); break; case 79: /* object-type */ case 96: /* protocol-object-types-supported */ @@ -10476,7 +10476,7 @@ fNotificationParameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui switch (fTagNo(tvb, offset)) { case 0: offset += fTagHeaderTree(tvb, pinfo, subtree, offset, &tag_no, &tag_info, &lvt); - fPresentValue(tvb, pinfo, tree, offset, BACnetStatusFlags, 0, BACAPP_PRESENT_VALUE_ENUM); + offset = fPresentValue(tvb, pinfo, tree, offset, BACnetStatusFlags, 0, BACAPP_PRESENT_VALUE_ENUM); offset += fTagHeaderTree(tvb, pinfo, subtree, offset, &tag_no, &tag_info, &lvt); break; case 1: |