diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-18 08:28:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-18 08:28:09 +0000 |
commit | e821951debcdc03808f8b9e08b1a1299aefb0580 (patch) | |
tree | 5c7865a8a4529cc4ce3fbef6d867fd42242f3825 /packet-eth.c | |
parent | 18bfc670eccbc7b9acacd7121e415b3d335b7ff9 (diff) |
Make sure "fh_tree" is always set in "dissect_eth()" before passing it
to "ethertype()".
svn path=/trunk/; revision=2916
Diffstat (limited to 'packet-eth.c')
-rw-r--r-- | packet-eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-eth.c b/packet-eth.c index 8051248e6d..65744cb227 100644 --- a/packet-eth.c +++ b/packet-eth.c @@ -1,7 +1,7 @@ /* packet-eth.c * Routines for ethernet packet disassembly * - * $Id: packet-eth.c,v 1.56 2001/01/18 07:44:39 guy Exp $ + * $Id: packet-eth.c,v 1.57 2001/01/18 08:28:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -156,7 +156,7 @@ dissect_eth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) volatile guint16 length; tvbuff_t *volatile next_tvb; tvbuff_t *volatile trailer_tvb; - proto_tree *volatile fh_tree; + proto_tree *volatile fh_tree = NULL; CHECK_DISPLAY_AS_DATA(proto_eth, tvb, pinfo, tree); |