diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-14 16:47:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-14 16:47:56 +0000 |
commit | 6af349418ab9a2b2c15de3c3db56882279db357b (patch) | |
tree | e03e4114196035742da879118b6f8b24f6ab18a9 | |
parent | f58cd0bd5cc68668a18feb5e7aa16594fe924873 (diff) | |
download | wireshark-6af349418ab9a2b2c15de3c3db56882279db357b.tar.gz wireshark-6af349418ab9a2b2c15de3c3db56882279db357b.tar.bz2 wireshark-6af349418ab9a2b2c15de3c3db56882279db357b.zip |
Create the temporary tree if we're *not* building a protocol tree
already, not if we *are*.
svn path=/trunk/; revision=6414
-rw-r--r-- | packet-ncp2222.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ncp2222.inc b/packet-ncp2222.inc index c9239d2473..272d46698d 100644 --- a/packet-ncp2222.inc +++ b/packet-ncp2222.inc @@ -8,7 +8,7 @@ * Gilbert Ramirez <gram@alumni.rice.edu> * Modified to decode NDS packets by Greg Morris <gmorris@novell.com> * - * $Id: packet-ncp2222.inc,v 1.33 2002/10/11 21:52:11 guy Exp $ + * $Id: packet-ncp2222.inc,v 1.34 2002/10/14 16:47:56 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -8263,7 +8263,7 @@ dissect_ping_req(tvbuff_t *tvb, packet_info *pinfo, * display filters can't possibly work. If we already have * a proto_tree, then wonderful. If we don't, we need to build * one. */ - if (ncp_rec && ncp_tree != NULL) { + if (ncp_rec && !ncp_tree) { proto_item *ti; temp_tree = proto_tree_create_root(); |