summaryrefslogtreecommitdiff
path: root/asn1/snmp/packet-snmp-template.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2015-04-10 14:57:55 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-10 13:19:33 +0000
commit1785d4206111dcbd0ef7ced3a1aad55da76c7b91 (patch)
treeb2f250c1f8e3656a304a4907b1a4c1e6acad9f47 /asn1/snmp/packet-snmp-template.c
parent38d3e063d3fb3d007e61b5e8681372c247171218 (diff)
downloadwireshark-1785d4206111dcbd0ef7ced3a1aad55da76c7b91.tar.gz
Remove depricated API tvb_length -> tvb_reported_length
Change-Id: I78b1d2accf4fd0b37eaa16cb8bf515422565e98a Reviewed-on: https://code.wireshark.org/review/8011 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/snmp/packet-snmp-template.c')
-rw-r--r--asn1/snmp/packet-snmp-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index cf2d8b7bfe..eb676407db 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -1909,7 +1909,7 @@ dissect_snmp_pdu(tvbuff_t *tvb, int offset, packet_info *pinfo,
* have that routine deal with ASN.1, and just use
* "tcp_dissect_pdus()"?)
*/
- length_remaining = tvb_ensure_length_remaining(tvb, offset);
+ length_remaining = tvb_ensure_captured_length_remaining(tvb, offset);
/* NOTE: we have to parse the message piece by piece, since the
* capture length may be less than the message length: a 'global'