diff options
author | Michael Mann <mmann78@netscape.net> | 2014-11-22 16:15:17 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-11-26 16:20:59 +0000 |
commit | a2c2f872f4eb2ba393d091a5623b1168689e6b09 (patch) | |
tree | 35862c173921e51e3bef89d4a40f96fee0b8a1f0 /epan/dissectors/packet-isl.c | |
parent | 449bc19ba9dd11431a3b4be547b1f37981fe77b9 (diff) |
Remove the use of pinfo->private_data from dissectors that just save it to restore it.
Change-Id: I13197cc48068bb35ee12a7023cfe5f76bbc4e264
Reviewed-on: https://code.wireshark.org/review/5486
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-isl.c')
-rw-r--r-- | epan/dissectors/packet-isl.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/epan/dissectors/packet-isl.c b/epan/dissectors/packet-isl.c index fecfe7e054..d59521b3d4 100644 --- a/epan/dissectors/packet-isl.c +++ b/epan/dissectors/packet-isl.c @@ -154,7 +154,6 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) tvbuff_t *volatile next_tvb; tvbuff_t *volatile trailer_tvb = NULL; const char *saved_proto; - void *pd_save; col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISL"); col_clear(pinfo->cinfo, COL_INFO); @@ -276,7 +275,6 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) before an exception was thrown, we can still put in an item for the trailer. */ saved_proto = pinfo->current_proto; - pd_save = pinfo->private_data; TRY { /* Frames encapsulated in ISL include an FCS. */ call_dissector(eth_withfcs_handle, next_tvb, pinfo, tree); @@ -289,11 +287,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) Show the exception, and then drive on to show the trailer, restoring the protocol value that was in effect before we called the subdissector. - - Restore the private_data structure in case one of the - called dissectors modified it (and, due to the exception, - was unable to restore it). */ - pinfo->private_data = pd_save; + */ show_exception(next_tvb, pinfo, tree, EXCEPT_CODE, GET_MESSAGE); pinfo->current_proto = saved_proto; |