aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2015-02-18 23:55:51 +0100
committerAnders Broman <a.broman58@gmail.com>2015-02-19 14:26:16 +0000
commit9fba8c88625d389ea12d09dbbc073ced9d65c782 (patch)
tree3a322758f18e1a01561052e6f935eae2e92ddda1
parentd330cf717d44fc544cba0eb53878d314abd50756 (diff)
Bugfix in nbns dissector.
Change-Id: I5375a1ae2e48fe0c7ff6e3dde24b8d7b02b1f27f Reviewed-on: https://code.wireshark.org/review/7251 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-nbns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nbns.c b/epan/dissectors/packet-nbns.c
index d2b0b0f03d..d8e21a0f9d 100644
--- a/epan/dissectors/packet-nbns.c
+++ b/epan/dissectors/packet-nbns.c
@@ -1257,15 +1257,15 @@ dissect_nbdgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tvb, offset, 2, header.dgm_length,
"%u bytes", header.dgm_length);
}
+ offset += 2;
if (tree) {
- header.pkt_offset = tvb_get_ntohs(tvb, offset+2);
+ header.pkt_offset = tvb_get_ntohs(tvb, offset);
proto_tree_add_uint_format_value(nbdgm_tree, hf_nbdgm_packet_offset,
tvb, offset, 2, header.pkt_offset,
"%u bytes", header.pkt_offset);
}
-
- offset += 4;
+ offset += 2;
name = (char *)wmem_alloc(wmem_packet_scope(), MAX_NAME_LEN);