From f4054ad14814af08f601323c9a08fb326a8e3915 Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Sun, 25 Nov 2007 15:36:38 +0000 Subject: [PATCH] =?UTF-8?q?Based=20on=20suggestion=20from=20Stig=20Bj?= =?UTF-8?q?=C3=B8rlykke.=20Add=20CRC=20tree=20even=20when=20CRC=20is=20mis?= =?UTF-8?q?sing.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=23584 --- epan/dissectors/packet-fcoe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-fcoe.c b/epan/dissectors/packet-fcoe.c index c2a9c33ae8..a19bad23df 100644 --- a/epan/dissectors/packet-fcoe.c +++ b/epan/dissectors/packet-fcoe.c @@ -227,7 +227,6 @@ dissect_fcoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Create the CRC information. */ - item = ti; if (crc_exists) { if (crc == crc_computed) { item = proto_tree_add_uint_format(fcoe_tree, hf_fcoe_crc, tvb, @@ -245,6 +244,9 @@ dissect_fcoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } proto_tree_set_appendix(fcoe_tree, tvb, crc_offset, tvb_length_remaining (tvb, crc_offset)); + } else { + item = proto_tree_add_text(fcoe_tree, tvb, crc_offset, 0, + "CRC: [missing]"); } crc_tree = proto_item_add_subtree(item, ett_fcoe_crc); ti = proto_tree_add_boolean(crc_tree, hf_fcoe_crc_bad, tvb,