summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-agentx.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2011-02-13 21:19:26 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2011-02-13 21:19:26 +0000
commit3c54ea00a9770f728ded3bf1cb82477c46b37e91 (patch)
treef9a1ea7c5a79320586d374202efb80a3cb3a37ee /epan/dissectors/packet-agentx.c
parent5a7ac9140ee7788a1af852726373d12dd2f0503c (diff)
downloadwireshark-3c54ea00a9770f728ded3bf1cb82477c46b37e91.tar.gz
From Fulko Hew:
The 'upper bound field is not being displayed in Register and Unregister PDU's. svn path=/trunk/; revision=35943
Diffstat (limited to 'epan/dissectors/packet-agentx.c')
-rw-r--r--epan/dissectors/packet-agentx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-agentx.c b/epan/dissectors/packet-agentx.c
index a2bad2f623..d78b6566a3 100644
--- a/epan/dissectors/packet-agentx.c
+++ b/epan/dissectors/packet-agentx.c
@@ -622,6 +622,7 @@ dissect_register_pdu(tvbuff_t *tvb, proto_tree *tree, int offset, int len, char
offset += dissect_object_id(tvb, subtree, offset, flags, OID_EXACT);
+ len += PDU_HDR_LEN;
if(len > offset) {
/* Upper bound (opt) */
proto_tree_add_item(subtree, hf_reg_ubound, tvb, offset, 4, little_endian);
@@ -653,6 +654,7 @@ dissect_unregister_pdu(tvbuff_t *tvb, proto_tree *tree, int offset, int len, cha
/* Region */
offset += dissect_object_id(tvb, subtree, offset, flags, OID_EXACT);
+ len += PDU_HDR_LEN;
if(len > offset) {
/* Upper bound (opt) */
proto_tree_add_item(subtree, hf_unreg_ubound, tvb, offset, 4, little_endian);