aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-30 22:42:57 +0000
committerTim Potter <tpot@samba.org>2003-01-30 22:42:57 +0000
commit3405e80d33f86e9edd87707aab58a28ee3c51e40 (patch)
treeba76df0a138201054ce8cb2d5adb02f6ea6c397d
parent60e77fd780c4d31ed8c2f1dd0c71d1e356d35bfe (diff)
Don't append string to upper-level proto_items if item == NULL.
svn path=/trunk/; revision=7050
-rw-r--r--packet-dcerpc-nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-dcerpc-nt.c b/packet-dcerpc-nt.c
index fbcd71fa69..146cc903fb 100644
--- a/packet-dcerpc-nt.c
+++ b/packet-dcerpc-nt.c
@@ -2,7 +2,7 @@
* Routines for DCERPC over SMB packet disassembly
* Copyright 2001-2003, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc-nt.c,v 1.59 2003/01/30 08:19:38 guy Exp $
+ * $Id: packet-dcerpc-nt.c,v 1.60 2003/01/30 22:42:57 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1002,7 +1002,7 @@ void cb_str_postprocess(packet_info *pinfo, proto_tree *tree _U_,
}
/* Append string to upper-level proto_items */
- if (levels > 0) {
+ if (levels > 0 && item) {
proto_item_append_text(item, ": %s", s);
item = item->parent;
levels--;