forked from osmocom/wireshark
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:
parent
bf491ed70b
commit
fbd37e5c16
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue