aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdt.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
committerMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
commit98492c561948b8d08c8c39e61a6f2c8b31cb344f (patch)
treec87f8e4302c3e9172a21a320e9e9e56baa301b21 /epan/dissectors/packet-cdt.c
parentfdead4df94f6cd253c6768369805732f35a7d9e2 (diff)
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'epan/dissectors/packet-cdt.c')
-rw-r--r--epan/dissectors/packet-cdt.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/dissectors/packet-cdt.c b/epan/dissectors/packet-cdt.c
index afc6856b1b..46fbc961df 100644
--- a/epan/dissectors/packet-cdt.c
+++ b/epan/dissectors/packet-cdt.c
@@ -244,16 +244,14 @@ static int
dissect_cdt_CompressedContent(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 69 "../../asn1/cdt/cdt.cnf"
tvbuff_t *next_tvb = NULL, *compr_tvb = NULL;
- proto_item *tf = NULL;
int save_offset = offset;
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
&compr_tvb);
if (compr_tvb == NULL) {
- tf = proto_tree_add_text (top_tree, tvb, save_offset, -1,
- "[Error: Unable to get compressed content]");
- expert_add_info(actx->pinfo, tf, &ei_cdt_unable_compress_content);
+ proto_tree_add_expert(top_tree, actx->pinfo, &ei_cdt_unable_compress_content,
+ tvb, save_offset, -1);
col_append_str (actx->pinfo->cinfo, COL_INFO,
"[Error: Unable to get compressed content]");
return offset;
@@ -262,9 +260,8 @@ dissect_cdt_CompressedContent(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
next_tvb = tvb_child_uncompress (tvb, compr_tvb, 0, tvb_length (compr_tvb));
if (next_tvb == NULL) {
- tf = proto_tree_add_text (top_tree, tvb, save_offset, -1,
- "[Error: Unable to uncompress content]");
- expert_add_info(actx->pinfo, tf, &ei_cdt_unable_uncompress_content);
+ proto_tree_add_expert(top_tree, actx->pinfo, &ei_cdt_unable_uncompress_content,
+ tvb, save_offset, -1);
col_append_str (actx->pinfo->cinfo, COL_INFO,
"[Error: Unable to uncompress content]");
return offset;