aboutsummaryrefslogtreecommitdiffstats
path: root/packet-quakeworld.c
diff options
context:
space:
mode:
authorgirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-22 18:52:38 +0000
committergirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-22 18:52:38 +0000
commit56687ac6cc4a5a6cf298e9f2ca3661b25d2f6854 (patch)
treec4fdcfa2c8f390381fafafacec20126c4427b92f /packet-quakeworld.c
parent8bfcd05352d1c990793354cc5b29f0a8217decb3 (diff)
Before calling proto_tree_add_string, the correct proto_tree should
be checked and not any upper proto_tree object. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3766 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-quakeworld.c')
-rw-r--r--packet-quakeworld.c4
1 files changed, 2 insertions, 2 deletions
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 <uwe@planetquake.com>
* 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 <gerald@zing.org>
@@ -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) {