diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-08-23 22:08:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-08-23 22:08:50 +0000 |
commit | 53573379042961623b14302e0d836c7e0bd497e9 (patch) | |
tree | 96e0e445469cfb0b31901e467400688b8d640744 /packet-ncp2222.inc | |
parent | ecef5353f4beba401ec6f587b9abd470d3dbafcb (diff) |
In "dissect_nds_request()", if we already have a tree into which to put
items, don't create the temporary tree.
svn path=/trunk/; revision=6073
Diffstat (limited to 'packet-ncp2222.inc')
-rw-r--r-- | packet-ncp2222.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-ncp2222.inc b/packet-ncp2222.inc index 76e203aeb8..502aa70c19 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.14 2002/08/23 17:47:31 gram Exp $ + * $Id: packet-ncp2222.inc,v 1.15 2002/08/23 22:08:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1380,7 +1380,7 @@ dissect_nds_request(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) { + if (ncp_rec && ncp_tree != NULL) { proto_item *ti; temp_tree = proto_tree_create_root(); @@ -1453,4 +1453,3 @@ dissect_nds_request(tvbuff_t *tvb, packet_info *pinfo, } } - |