From Fulko Hew:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 13 Feb 2011 21:19:26 +0000 (21:19 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 13 Feb 2011 21:19:26 +0000 (21:19 +0000)
The 'upper bound field is not being displayed in Register and Unregister PDU's.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35943 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-agentx.c

index a2bad2f623a88f95bf13945cce5c6aa6fd13b9a6..d78b6566a333bc160393fd53bd84bf9196e2f605 100644 (file)
@@ -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);