CPHA : tvb_length -> tvb_reported_length

Change-Id: I49a7ffb1fcff71d49593ab009036f21c3ae6a2d0
Reviewed-on: https://code.wireshark.org/review/5471
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-11-24 18:18:00 +01:00 committed by Anders Broman
parent 1f5dbb05b5
commit 2baac34eb1
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ dissect_cpha(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
* If the magic number or protocol version is unknown, don't treat this
* frame as a CPHA frame.
*/
if (tvb_length(tvb) < 4) {
if (tvb_reported_length(tvb) < 4) {
/* Not enough data for the magic number or protocol version */
return 0;
}
@ -341,7 +341,7 @@ dissect_cpha(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
}
}
return tvb_length(tvb);
return tvb_reported_length(tvb);
}
static int dissect_my_state(tvbuff_t * tvb, int offset, proto_tree * tree) {