diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-09-07 03:13:10 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-09-07 03:13:10 +0000 |
commit | d2c4fc1cbf6c1aa30943c56fcd14e8ae2d245e1f (patch) | |
tree | 8b554f2d98fa4271793c53b962c38d8b1579b815 /epan/dissectors/packet-ssl.c | |
parent | c8eba87983a0d0ad7919cbe3bded208ef4626adf (diff) |
Clean up indetation.
If we're running in TShark, there's never a GUI; clean up comments.
Merge a couple of if statements together, as the "true" branch of the
second statement is executed only if the "true" branch of the first
statement is executed.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26158 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ssl.c')
-rw-r--r-- | epan/dissectors/packet-ssl.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/epan/dissectors/packet-ssl.c b/epan/dissectors/packet-ssl.c index 30bb218606..8e025cba5a 100644 --- a/epan/dissectors/packet-ssl.c +++ b/epan/dissectors/packet-ssl.c @@ -1384,9 +1384,9 @@ dissect_ssl3_record(tvbuff_t *tvb, packet_info *pinfo, } else { - /* if we don't have a valid content_type, there's no sense - * continuing any further - */ + /* if we don't have a valid content_type, there's no sense + * continuing any further + */ if (check_col(pinfo->cinfo, COL_INFO)) col_append_str(pinfo->cinfo, COL_INFO, "Continuation Data"); @@ -1400,7 +1400,7 @@ dissect_ssl3_record(tvbuff_t *tvb, packet_info *pinfo, } /* - * If GUI, fill in record layer part of tree + * If building a protocol tree, fill in record layer part of tree */ if (tree) { @@ -1410,9 +1410,6 @@ dissect_ssl3_record(tvbuff_t *tvb, packet_info *pinfo, ti = proto_tree_add_item(tree, hf_ssl_record, tvb, offset, 5 + record_length, 0); ssl_record_tree = proto_item_add_subtree(ti, ett_ssl_record); - } - if (ssl_record_tree) - { /* show the one-byte content type */ proto_tree_add_item(ssl_record_tree, hf_ssl_record_content_type, @@ -1431,7 +1428,7 @@ dissect_ssl3_record(tvbuff_t *tvb, packet_info *pinfo, } else { - /* if no GUI tree, then just skip over those fields */ + /* if no protocol tree, then just skip over those fields */ offset += 5; } |