aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cdt
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 /asn1/cdt
parentfdead4df94f6cd253c6768369805732f35a7d9e2 (diff)
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'asn1/cdt')
-rw-r--r--asn1/cdt/cdt.cnf11
1 files changed, 4 insertions, 7 deletions
diff --git a/asn1/cdt/cdt.cnf b/asn1/cdt/cdt.cnf
index bb4523afdc..ce4ebcf8bb 100644
--- a/asn1/cdt/cdt.cnf
+++ b/asn1/cdt/cdt.cnf
@@ -67,14 +67,12 @@ CompressedData B "1.3.26.0.4406.0.4.2" "cdt"
#.FN_BODY CompressedContent
tvbuff_t *next_tvb = NULL, *compr_tvb = NULL;
- proto_item *tf = NULL;
int save_offset = offset;
%(DEFAULT_BODY)s
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;
@@ -83,9 +81,8 @@ CompressedData B "1.3.26.0.4406.0.4.2" "cdt"
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;