summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-vnc.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-21 06:48:58 -0400
committerAnders Broman <a.broman58@gmail.com>2015-06-21 22:38:59 +0000
commitebc8ec83fdaefd6253aeb8db587f2d3b413fc340 (patch)
tree54c523d543a8e2ea7866e13ba062e2524202fa23 /epan/dissectors/packet-vnc.c
parenta2e2c1f99783b5ad1048e9bba5b7a2834680b5fd (diff)
downloadwireshark-ebc8ec83fdaefd6253aeb8db587f2d3b413fc340.tar.gz
Remove deprecated tvb_length from a bunch of dissectors
Change-Id: I5c777806cb1403062a9d85261149d722df57b239 Reviewed-on: https://code.wireshark.org/review/9005 Reviewed-by: Evan Huus <eapache@gmail.com> Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-vnc.c')
-rw-r--r--epan/dissectors/packet-vnc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c
index 47b9da0b90..1e75c01b95 100644
--- a/epan/dissectors/packet-vnc.c
+++ b/epan/dissectors/packet-vnc.c
@@ -1037,7 +1037,7 @@ process_tight_capabilities(proto_tree *tree,
static gboolean
vnc_is_client_or_server_version_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- if(tvb_length(tvb) != 12) {
+ if(tvb_captured_length(tvb) != 12) {
return FALSE;
}
@@ -1545,7 +1545,7 @@ vnc_startup_messages(tvbuff_t *tvb, packet_info *pinfo, gint offset,
tvb, offset, 3, ENC_NA);
offset += 3; /* Skip over 3 bytes of padding */
- if(tvb_length_remaining(tvb, offset) > 4) {
+ if(tvb_reported_length_remaining(tvb, offset) > 4) {
/* Sometimes the desktop name & length is skipped */
proto_tree_add_item(tree, hf_vnc_desktop_name_len,
tvb, offset, 4, ENC_BIG_ENDIAN);