aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pnrp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-23 15:17:27 -0700
committerEvan Huus <eapache@gmail.com>2015-06-23 22:17:56 +0000
commit0a9a2554a46ce4e040dba669a3ed22f0e9ab709e (patch)
tree931067907b96dc2f2ad7bf815f28aad90f6a0f6b /epan/dissectors/packet-pnrp.c
parentd4f6480253cf303f70c3d831098adf7582403b8f (diff)
Remove more deprecated tvb_length calls
Change-Id: Ie137e6f4e20fe26b1a4d9510e267896219c1c631 Reviewed-on: https://code.wireshark.org/review/9075 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pnrp.c')
-rw-r--r--epan/dissectors/packet-pnrp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-pnrp.c b/epan/dissectors/packet-pnrp.c
index 123b4c52e7..13139df190 100644
--- a/epan/dissectors/packet-pnrp.c
+++ b/epan/dissectors/packet-pnrp.c
@@ -376,11 +376,7 @@ static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
* Validate if it is really a PNRP Packet
*----------------------------------------*/
/* Check that there's enough data */
- /* XXX: ISTR that tvb_length should be used when */
- /* initially checking for a valid packet for a */
- /* new style dissector. */
- /* ToDo: confirm */
- data_length = tvb_reported_length(tvb);
+ data_length = tvb_captured_length(tvb);
/* Shortest Message is ACK -> 12 Bytes for Header plus 8 Bytes for Data */
if (data_length < 12+8 )