aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wtls.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-09-06 21:32:39 -0400
committerEvan Huus <eapache@gmail.com>2014-09-07 17:08:29 +0000
commit2b27d91f2671d9fb9d9f8791e75d83c0cb3b73b2 (patch)
treef33941c31fdb5d755d6690d4d5d577a92e22fb50 /epan/dissectors/packet-wtls.c
parentf76b4d934662451f05820408b4841d08a2b2d351 (diff)
Eliminate proto_tree_add_text from some of the dissectors.
Other minor cleanups while in the area. Change-Id: Id8dab02df6f111c3462238c3de1bf201e037ca48 Reviewed-on: https://code.wireshark.org/review/4022 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wtls.c')
-rw-r--r--epan/dissectors/packet-wtls.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-wtls.c b/epan/dissectors/packet-wtls.c
index c969c6ac5f..4e5dd3bcfd 100644
--- a/epan/dissectors/packet-wtls.c
+++ b/epan/dissectors/packet-wtls.c
@@ -454,7 +454,6 @@ add_session_id(proto_tree *tree, int hf, int hf_str, tvbuff_t *tvb, int offset)
guint count;
guint i;
guint64 session_id;
- header_field_info *hfinfo;
count = tvb_get_guint8(tvb, offset);
if (count == 0)
@@ -465,9 +464,7 @@ add_session_id(proto_tree *tree, int hf, int hf_str, tvbuff_t *tvb, int offset)
session_id = (session_id << 8) | tvb_get_guint8(tvb, offset + i);
proto_tree_add_uint64 (tree, hf, tvb, offset, count+1, session_id);
} else {
- hfinfo = proto_registrar_get_nth(hf);
- proto_tree_add_text (tree, tvb, offset, count+1, "%s: %s",
- hfinfo->name, tvb_bytes_to_ep_str(tvb, offset+1, count));
+ proto_tree_add_item(tree, hf, tvb, offset, count+1, ENC_NA);
}
return offset+1+count;
}