From 5bed338b6d695e11181866769800e3f2541c3868 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 27 Oct 2014 13:43:15 +0100 Subject: [PATCH] HPSW: Fix soft-deprecated APIs warning Change-Id: I2f69781972fe2737e09d275dc842c4ea744e7fb1 Reviewed-on: https://code.wireshark.org/review/4952 Reviewed-by: Evan Huus --- epan/dissectors/packet-hpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-hpsw.c b/epan/dissectors/packet-hpsw.c index 4d01765abb..4e43500dfd 100644 --- a/epan/dissectors/packet-hpsw.c +++ b/epan/dissectors/packet-hpsw.c @@ -256,7 +256,7 @@ dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) length = tvb_get_guint8(tvb, offset+1); /* make sure still in valid tlv */ - if (( length < 1 ) || ( length > tvb_length_remaining(tvb, offset+2))) + if (( length < 1 ) || ( length > tvb_reported_length_remaining(tvb, offset+2))) break; tlv_tree = proto_tree_add_subtree(hp_tree, tvb, offset, length+2, ett_hpsw_tlv, NULL,