aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-woww.c
diff options
context:
space:
mode:
authorGtker <wireshark@gtker.com>2021-07-21 16:03:57 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-07-24 07:42:00 +0000
commit4473fe487f103ac4cf1a486e9a27b262fac8135a (patch)
tree07d9b0f6fe9fa80e8878d06f936b58a973271f9e /epan/dissectors/packet-woww.c
parentbb6fcfdedb472f32d55e05ec8fa4e5c6c59f6a7d (diff)
WOWW: Move adding of tree items to be closer to tree logic
Diffstat (limited to 'epan/dissectors/packet-woww.c')
-rw-r--r--epan/dissectors/packet-woww.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-woww.c b/epan/dissectors/packet-woww.c
index 2b8050d9a4..c53f802366 100644
--- a/epan/dissectors/packet-woww.c
+++ b/epan/dissectors/packet-woww.c
@@ -2103,13 +2103,8 @@ dissect_woww(tvbuff_t *tvb,
col_set_str(pinfo->cinfo, COL_PROTOCOL, "WOWW");
- col_clear(pinfo->cinfo, COL_INFO);
col_set_str(pinfo->cinfo, COL_INFO, "Session Key Not Known Yet");
- proto_tree* ti = proto_tree_add_item(tree, proto_woww, tvb, 0, -1, ENC_NA);
-
- proto_tree* woww_tree = proto_item_add_subtree(ti, ett_woww);
-
// Get conversation data
conversation_t* conv = find_or_create_conversation(pinfo);
WowwConversation_t* wowwConversation = (WowwConversation_t *)conversation_get_proto_data(conv,
@@ -2139,6 +2134,10 @@ dissect_woww(tvbuff_t *tvb,
return tvb_captured_length(tvb);
}
+ proto_tree* ti = proto_tree_add_item(tree, proto_woww, tvb, 0, -1, ENC_NA);
+
+ proto_tree* woww_tree = proto_item_add_subtree(ti, ett_woww);
+
// Add to tree
tvbuff_t *next_tvb = tvb_new_child_real_data(tvb, decrypted_header, headerSize, headerSize);
add_new_data_source(pinfo, next_tvb, "Decrypted Header");