summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-rdp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-22 17:05:37 -0700
committerEvan Huus <eapache@gmail.com>2015-06-23 00:06:19 +0000
commit67ab8a059c489022aebe0e27d1f937c7b6abad06 (patch)
tree6b6cb9e97c0b56ac14ea8224760356e1c5965748 /epan/dissectors/packet-rdp.c
parenta43682d4fd9075f07f8dce1ddc5bda3e07296c27 (diff)
downloadwireshark-67ab8a059c489022aebe0e27d1f937c7b6abad06.tar.gz
Remove more deprecated tvb_length
Change-Id: I36603453c2563406f82663683930088dedd5f39c Reviewed-on: https://code.wireshark.org/review/9041 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rdp.c')
-rw-r--r--epan/dissectors/packet-rdp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rdp.c b/epan/dissectors/packet-rdp.c
index 3c9dd311b9..7bccabacdd 100644
--- a/epan/dissectors/packet-rdp.c
+++ b/epan/dissectors/packet-rdp.c
@@ -1743,7 +1743,7 @@ dissect_rdp_ClientData(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
#if 0
printf("offset=%d, type=%x, length=%d, remaining=%d\n",
- offset, type, length, tvb_length_remaining(tvb, offset));
+ offset, type, length, tvb_captured_length_remaining(tvb, offset));
#endif
switch(type) {
@@ -1899,13 +1899,13 @@ dissect_rdp_ServerData(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
* Note: If length is less than the header size (4 bytes) offset is advanced by 4 bytes
* to ensure that dissection eventually terminates.
*/
- while (tvb_length_remaining(tvb, offset) > 0) {
+ while (tvb_reported_length_remaining(tvb, offset) > 0) {
type = tvb_get_letohs(tvb, offset);
length = tvb_get_letohs(tvb, offset+2);
/* printf("offset=%d, type=%x, length=%d, remaining=%d\n",
- offset, type, length, tvb_length_remaining(tvb, offset)); */
+ offset, type, length, tvb_captured_length_remaining(tvb, offset)); */
switch(type) {
case SC_CORE: