diff options
author | Uwe Girlich <Uwe.Girlich@philosys.de> | 2001-07-22 18:52:38 +0000 |
---|---|---|
committer | Uwe Girlich <Uwe.Girlich@philosys.de> | 2001-07-22 18:52:38 +0000 |
commit | b9a3653c89b9f80644a4a9ac12740dd324270964 (patch) | |
tree | c4fdcfa2c8f390381fafafacec20126c4427b92f /packet-quake2.c | |
parent | cc21ec8124253913242f0c748126582f7eba5999 (diff) | |
download | wireshark-b9a3653c89b9f80644a4a9ac12740dd324270964.tar.gz wireshark-b9a3653c89b9f80644a4a9ac12740dd324270964.tar.bz2 wireshark-b9a3653c89b9f80644a4a9ac12740dd324270964.zip |
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
Diffstat (limited to 'packet-quake2.c')
-rw-r--r-- | packet-quake2.c | 4 |
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); } |