aboutsummaryrefslogtreecommitdiffstats
path: root/packet-quake2.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-quake2.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-quake2.c')
-rw-r--r--packet-quake2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-quake2.c b/packet-quake2.c
index 0b5f43b9ee..fc7b602f6d 100644
--- a/packet-quake2.c
+++ b/packet-quake2.c
@@ -7,7 +7,7 @@
* http://www.dgs.monash.edu.au/~timf/bottim/
* http://www.opt-sci.Arizona.EDU/Pandora/default.asp
*
- * $Id: packet-quake2.c,v 1.1 2001/06/21 15:15:57 girlich Exp $
+ * $Id: packet-quake2.c,v 1.2 2001/07/22 18:52:38 girlich Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -101,7 +101,7 @@ dissect_quake2_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo,
maxbufsize = MIN((gint)sizeof(text), tvb_length_remaining(tvb, offset));
len = tvb_get_nstringz0(tvb, offset, maxbufsize, text);
- if (tree) {
+ if (cl_tree) {
proto_tree_add_string(cl_tree, hf_quake2_connectionless_text,
tvb, offset, len + 1, text);
}