diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-21 21:37:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-21 21:37:26 +0000 |
commit | 51ab25da1561ba3387e5d980cfc4501a8ac1fe0b (patch) | |
tree | 7de4277446513b58f5731ee8e63d1733368f117f /packet-wcp.c | |
parent | c6c149df2cf4f307a3493913604b55c1d03cbaf3 (diff) |
If we have to worry about subdissectors changing the "packet_info"
structure, we may have to worry about it in more places than the places
that *used* to set "pi.len" and "pi.captured_len", so there's no point
in just saving and restoring it there. We'll remove those
saves/restores, and worry about saves and restores when we find a
problem.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4245 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wcp.c')
-rw-r--r-- | packet-wcp.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/packet-wcp.c b/packet-wcp.c index a06b898b78..ab47a90385 100644 --- a/packet-wcp.c +++ b/packet-wcp.c @@ -2,7 +2,7 @@ * Routines for Wellfleet Compression frame disassembly * Copyright 2001, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-wcp.c,v 1.13 2001/11/20 22:29:04 guy Exp $ + * $Id: packet-wcp.c,v 1.14 2001/11/21 21:37:26 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -308,8 +308,6 @@ void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { int wcp_header_len; guint16 temp, cmd, ext_cmd, seq; tvbuff_t *next_tvb; - packet_info save_pi; - gboolean must_restore_pi = FALSE; pinfo->current_proto = "WCP"; @@ -395,12 +393,6 @@ void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { "[Malformed Frame: Bad WCP compressed data]" ); return; } - - /* XXX - is this still necessary? Do we have to worry - about subdissectors changing "pi", or, given that - we're no longer doing so, is that no longer an issue? */ - save_pi = pi; - must_restore_pi = TRUE; } if ( tree) /* add the check byte */ @@ -410,9 +402,6 @@ void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { dissect_fr_uncompressed(next_tvb, pinfo, tree); - if (must_restore_pi) - pi = save_pi; - return; } |