diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-23 00:48:33 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-23 00:48:33 +0000 |
commit | c65515848941a8a4e42a4f48b13bdd78312e5985 (patch) | |
tree | ee49b498b05302699cb257ae7102c18d15a844d1 | |
parent | bdf8645b0692bda25b96175695eb073470b6355c (diff) | |
download | wireshark-c65515848941a8a4e42a4f48b13bdd78312e5985.tar.gz wireshark-c65515848941a8a4e42a4f48b13bdd78312e5985.tar.bz2 wireshark-c65515848941a8a4e42a4f48b13bdd78312e5985.zip |
Don't assume that we're building a protocol tree; dereference tree
pointers only if we are.
svn path=/trunk/; revision=6478
-rw-r--r-- | packet-dcerpc-epm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-dcerpc-epm.c b/packet-dcerpc-epm.c index 48956a9113..c3b5dcd87a 100644 --- a/packet-dcerpc-epm.c +++ b/packet-dcerpc-epm.c @@ -2,7 +2,7 @@ * Routines for dcerpc endpoint mapper dissection * Copyright 2001, Todd Sabin <tas@webspan.net> * - * $Id: packet-dcerpc-epm.c,v 1.15 2002/10/21 18:07:20 guy Exp $ + * $Id: packet-dcerpc-epm.c,v 1.16 2002/10/23 00:48:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -185,8 +185,10 @@ epm_dissect_ept_entry_t(tvbuff_t *tvb, int offset, offset += len; if(str&&str[0]){ - proto_item_append_text(tree, " Service:%*s ", strlen, str); - proto_item_append_text(tree->parent, " Service:%*s ", strlen, str); + if(parent_tree) { + proto_item_append_text(item, " Service:%*s ", strlen, str); + proto_item_append_text(tree->parent, " Service:%*s ", strlen, str); + } if (check_col(pinfo->cinfo, COL_INFO)) { col_append_fstr(pinfo->cinfo, COL_INFO, ", Service:%*s", strlen, str); } |