diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-18 04:01:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-18 04:01:23 +0000 |
commit | fbd37e5c1625f6af0bd7d25c1c3492dad1e413c8 (patch) | |
tree | 2cb9b3d1449da95a4ee7f74366f58560bc22b645 | |
parent | bf491ed70b260aecb28afab95e8ba5390015f4d7 (diff) | |
download | wireshark-fbd37e5c1625f6af0bd7d25c1c3492dad1e413c8.tar.gz wireshark-fbd37e5c1625f6af0bd7d25c1c3492dad1e413c8.tar.bz2 wireshark-fbd37e5c1625f6af0bd7d25c1c3492dad1e413c8.zip |
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
-rw-r--r-- | packet-gssapi.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packet-gssapi.c b/packet-gssapi.c index 543363686b..84ef44ff63 100644 --- a/packet-gssapi.c +++ b/packet-gssapi.c @@ -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); } |