diff options
author | Evan Huus <evan.huus@jadedpixel.com> | 2014-06-19 19:55:27 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-06-19 19:56:32 +0000 |
commit | 15a0a6315641cba55363ba6ef4769b27ffc90ccb (patch) | |
tree | 6966531d85b225e3d3adbeb10474c2aac67fb67e /asn1/ess | |
parent | 78a5f0c1d89a39d103b99d4d618418cd1b81f496 (diff) | |
download | wireshark-15a0a6315641cba55363ba6ef4769b27ffc90ccb.tar.gz |
batch of manual tvb_length conversions
Change-Id: Ifea45514bdba8be5f62b9dc560027077297f631e
Reviewed-on: https://code.wireshark.org/review/2456
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'asn1/ess')
-rw-r--r-- | asn1/ess/packet-ess-template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/ess/packet-ess-template.c b/asn1/ess/packet-ess-template.c index 8fcdd8b8c9..5d4f8c108f 100644 --- a/asn1/ess/packet-ess-template.c +++ b/asn1/ess/packet-ess-template.c @@ -122,13 +122,13 @@ ess_dissect_attribute_flags (tvbuff_t *tvb, asn1_ctx_t *actx) guint i; tree = proto_item_add_subtree (actx->created_item, ett_Category_attributes); - value = (guint8 *)tvb_memdup (wmem_packet_scope(), tvb, 0, tvb_length (tvb)); + value = (guint8 *)tvb_memdup (wmem_packet_scope(), tvb, 0, tvb_captured_length (tvb)); for (i = 0; i < num_ess_category_attributes; i++) { ess_category_attributes_t *u = &(ess_category_attributes[i]); if ((strcmp (u->oid, object_identifier_id) == 0) && - ((u->lacv / 8) < tvb_length (tvb)) && + ((u->lacv / 8) < tvb_captured_length (tvb)) && (value[u->lacv / 8] & (1 << (7 - (u->lacv % 8))))) { proto_tree_add_string_format (tree, hf_ess_Category_attribute, tvb, |