diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-14 19:51:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-14 19:51:54 +0000 |
commit | e236ed8c57a5356d590fa34ce036d07fd9786d87 (patch) | |
tree | c911fe0692d350dc5b175103e40598aac182f38c /packet-nfs.c | |
parent | 44fed5407eaedc76f0fc71e4b559f417564c97ab (diff) | |
download | wireshark-e236ed8c57a5356d590fa34ce036d07fd9786d87.tar.gz wireshark-e236ed8c57a5356d590fa34ce036d07fd9786d87.tar.bz2 wireshark-e236ed8c57a5356d590fa34ce036d07fd9786d87.zip |
From Mike Frisch: add support for zero-length file handles (such as the
WebNFS root file handle).
svn path=/trunk/; revision=7154
Diffstat (limited to 'packet-nfs.c')
-rw-r--r-- | packet-nfs.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/packet-nfs.c b/packet-nfs.c index 7fc755d27d..9957afdf4f 100644 --- a/packet-nfs.c +++ b/packet-nfs.c @@ -2,7 +2,7 @@ * Routines for nfs dissection * Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de> * Copyright 2000-2002, Mike Frisch <frisch@hummingbird.com> (NFSv4 decoding) - * $Id: packet-nfs.c,v 1.84 2002/12/02 23:43:28 guy Exp $ + * $Id: packet-nfs.c,v 1.85 2003/02/14 19:51:54 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2780,9 +2780,17 @@ dissect_nfs_fh3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree_add_uint(ftree, hf_nfs_fh_length, tvb, offset+0, 4, fh3_len); - dissect_fhandle_data(tvb, offset+4, pinfo, ftree, fh3_len, FALSE); - offset += 4 + fh3_len_full; + /* Handle WebNFS requests where filehandle may be 0 length */ + if (fh3_len > 0) + { + dissect_fhandle_data(tvb, offset+4, pinfo, ftree, fh3_len, FALSE); + + offset += fh3_len_full; + } + + offset += 4; + return offset; } |