summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-lisp.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-04-13 14:56:19 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-04-13 14:56:19 +0000
commit1a37ac1aa7112b66c607b18a7e0e59e43268aac7 (patch)
tree576aaae015c71d41e3d1b8e27929d693498d172b /epan/dissectors/packet-lisp.c
parent8067c4185540ca1bf0a5170e2871a8acf2fd893d (diff)
downloadwireshark-1a37ac1aa7112b66c607b18a7e0e59e43268aac7.tar.gz
From LorĂ¡nd Jakab via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8578 :
Fix LISP site-ID dissection bug svn path=/trunk/; revision=48836
Diffstat (limited to 'epan/dissectors/packet-lisp.c')
-rw-r--r--epan/dissectors/packet-lisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lisp.c b/epan/dissectors/packet-lisp.c
index f34ad8f349..cee675bb39 100644
--- a/epan/dissectors/packet-lisp.c
+++ b/epan/dissectors/packet-lisp.c
@@ -1302,7 +1302,7 @@ dissect_lisp_map_register(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tr
/* If I bit is set, we have an xTR-ID and a site-ID field */
if (xtrid) {
proto_tree_add_item(lisp_tree, hf_lisp_xtrid, tvb, offset, LISP_XTRID_LEN, ENC_NA);
- proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset, LISP_SITEID_LEN, ENC_NA);
+ proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset + LISP_XTRID_LEN, LISP_SITEID_LEN, ENC_NA);
offset += LISP_XTRID_LEN + LISP_SITEID_LEN;
}
@@ -1406,7 +1406,7 @@ dissect_lisp_map_notify(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tree
/* If I bit is set, we have an xTR-ID and a site-ID field */
if (xtrid) {
proto_tree_add_item(lisp_tree, hf_lisp_xtrid, tvb, offset, LISP_XTRID_LEN, ENC_NA);
- proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset, LISP_SITEID_LEN, ENC_NA);
+ proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset + LISP_XTRID_LEN, LISP_SITEID_LEN, ENC_NA);
offset += LISP_XTRID_LEN + LISP_SITEID_LEN;
}