aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nfs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-27 02:03:31 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-27 02:03:31 +0000
commit6dc7a7ac4f3c70b2606947d2d4eba0322846c0b9 (patch)
tree51c5281ae2f91be847cd908517bb8d1810c5b294 /packet-nfs.c
parent1dfb66bc6719ae52cab1cd697ad2911e8a7c814a (diff)
downloadwireshark-6dc7a7ac4f3c70b2606947d2d4eba0322846c0b9.tar.gz
wireshark-6dc7a7ac4f3c70b2606947d2d4eba0322846c0b9.tar.bz2
wireshark-6dc7a7ac4f3c70b2606947d2d4eba0322846c0b9.zip
Don't set the text on a V2 READDIR entry if there's no entry.
svn path=/trunk/; revision=2380
Diffstat (limited to 'packet-nfs.c')
-rw-r--r--packet-nfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-nfs.c b/packet-nfs.c
index 0d5e04217f..7a6c93fa02 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>
*
- * $Id: packet-nfs.c,v 1.36 2000/08/15 21:27:46 guy Exp $
+ * $Id: packet-nfs.c,v 1.37 2000/08/27 02:03:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1211,7 +1211,8 @@ dissect_readdir_entry(const u_char* pd, int offset, frame_data* fd, proto_tree*
}
if (!BYTES_ARE_IN_FRAME(offset, 4)) {
- proto_item_set_text(entry_item, "Entry: <TRUNCATED>");
+ if (entry_item)
+ proto_item_set_text(entry_item, "Entry: <TRUNCATED>");
return offset;
}
fileid = EXTRACT_UINT(pd, offset + 0);