From b9a3653c89b9f80644a4a9ac12740dd324270964 Mon Sep 17 00:00:00 2001 From: Uwe Girlich Date: Sun, 22 Jul 2001 18:52:38 +0000 Subject: Before calling proto_tree_add_string, the correct proto_tree should be checked and not any upper proto_tree object. svn path=/trunk/; revision=3766 --- packet-quakeworld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-quakeworld.c') diff --git a/packet-quakeworld.c b/packet-quakeworld.c index 6e8fc68588..bc9500a9f8 100644 --- a/packet-quakeworld.c +++ b/packet-quakeworld.c @@ -4,7 +4,7 @@ * Uwe Girlich * http://www.idsoftware.com/q1source/q1source.zip * - * $Id: packet-quakeworld.c,v 1.3 2001/07/21 19:25:59 girlich Exp $ + * $Id: packet-quakeworld.c,v 1.4 2001/07/22 18:51:51 girlich Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -391,7 +391,7 @@ dissect_quakeworld_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo, len = tvb_get_nstringz0(tvb, offset, maxbufsize, text); /* actually, we should look for a eol char and stop already there */ - if (tree) { + if (cl_tree) { text_item = proto_tree_add_string(cl_tree, hf_quakeworld_connectionless_text, tvb, offset, len + 1, text); if (text_item) { -- cgit v1.2.1