diff options
author | AndersBroman <anders.broman@ericsson.com> | 2015-04-10 14:57:55 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-10 13:19:33 +0000 |
commit | 1785d4206111dcbd0ef7ced3a1aad55da76c7b91 (patch) | |
tree | b2f250c1f8e3656a304a4907b1a4c1e6acad9f47 /asn1/t124 | |
parent | 38d3e063d3fb3d007e61b5e8681372c247171218 (diff) |
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/t124')
-rw-r--r-- | asn1/t124/t124.cnf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/t124/t124.cnf b/asn1/t124/t124.cnf index 0a4faea114..e8ac286e4a 100644 --- a/asn1/t124/t124.cnf +++ b/asn1/t124/t124.cnf @@ -133,7 +133,7 @@ RegistryAllocateHandleResponse/result AllocateHandleResponseResult /* Not sure why - but lets ignore the length. */ /* We assume the OCTET STRING is all of the remaining bytes */ - if(tvb_length(next_tvb) == 42) { + if(tvb_reported_length(next_tvb) == 42) { /* this is perhaps a naive ... */ next_tvb = tvb_new_subset_remaining(tvb, (old_offset>>3)+1); } @@ -153,7 +153,7 @@ RegistryAllocateHandleResponse/result AllocateHandleResponseResult if(next_tvb) { - ns = tvb_get_string_enc(NULL, t124NSIdentifier, 0, tvb_length(t124NSIdentifier), ENC_ASCII|ENC_NA); + ns = tvb_get_string_enc(NULL, t124NSIdentifier, 0, tvb_reported_length(t124NSIdentifier), ENC_ASCII|ENC_NA); if(ns != NULL) { dissector_try_string(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree, NULL); g_free(ns); |