Use -1, rather than "tvb_length_remaining(tvb, offset)", in

"tvb_new_subset()" calls with an offset of "offset", so that the
reported length is set appropriately.

svn path=/trunk/; revision=11407
This commit is contained in:
Guy Harris 2004-07-18 04:01:23 +00:00
parent bf491ed70b
commit fbd37e5c16
1 changed files with 2 additions and 6 deletions

View File

@ -440,9 +440,7 @@ static int wrap_dissect_gssapi(tvbuff_t *tvb, int offset,
{
tvbuff_t *auth_tvb;
auth_tvb = tvb_new_subset(
tvb, offset, tvb_length_remaining(tvb, offset),
tvb_length_remaining(tvb, offset));
auth_tvb = tvb_new_subset(tvb, offset, -1, -1);
dissect_gssapi(auth_tvb, pinfo, tree);
@ -455,9 +453,7 @@ int wrap_dissect_gssapi_verf(tvbuff_t *tvb, int offset,
{
tvbuff_t *auth_tvb;
auth_tvb = tvb_new_subset(
tvb, offset, tvb_length_remaining(tvb, offset),
tvb_length_remaining(tvb, offset));
auth_tvb = tvb_new_subset(tvb, offset, -1, -1);
return dissect_gssapi_verf(auth_tvb, pinfo, tree);
}