Use tvb_length() instead of tvb_reported_length_remaining() for a heuristics length check.

Change-Id: I197fe3d401ffb2d5894c823690a11f4a68fb7268
Reviewed-on: https://code.wireshark.org/review/585
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Tested-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
Bill Meier 2014-03-09 17:38:07 -04:00
parent fced2dd196
commit 3003f1c791
2 changed files with 2 additions and 2 deletions

View File

@ -746,7 +746,7 @@ static gboolean dissect_atn_ulcs_heur(
{
/* do we have enough data*/
/* at least session + presentation data or pdv-list */
if (tvb_reported_length_remaining(tvb, 0) < 2){
if (tvb_length(tvb) < 2){
return FALSE; }
/* check for session/presentation/ACSE PDU's */

View File

@ -2142,7 +2142,7 @@ static gboolean dissect_atn_ulcs_heur(
{
/* do we have enough data*/
/* at least session + presentation data or pdv-list */
if (tvb_reported_length_remaining(tvb, 0) < 2){
if (tvb_length(tvb) < 2){
return FALSE; }
/* check for session/presentation/ACSE PDU's */