diff options
author | Michael Mann <mmann78@netscape.net> | 2013-07-03 02:59:31 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-07-03 02:59:31 +0000 |
commit | 98492c561948b8d08c8c39e61a6f2c8b31cb344f (patch) | |
tree | c87f8e4302c3e9172a21a320e9e9e56baa301b21 /asn1/goose | |
parent | fdead4df94f6cd253c6768369805732f35a7d9e2 (diff) |
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'asn1/goose')
-rw-r--r-- | asn1/goose/goose.cnf | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/asn1/goose/goose.cnf b/asn1/goose/goose.cnf index dc90f4827f..a855a7fec7 100644 --- a/asn1/goose/goose.cnf +++ b/asn1/goose/goose.cnf @@ -17,7 +17,6 @@ #.FN_BODY UtcTime guint32 len; - proto_item *cause; guint32 seconds; guint32 fraction; guint32 nanoseconds; @@ -28,11 +27,7 @@ if(len != 8) { - cause = proto_tree_add_text(tree, tvb, offset, len, - "BER Error: malformed UTCTime encoding, " - "length must be 8 bytes"); - proto_item_set_expert_flags(cause, PI_MALFORMED, PI_WARN); - expert_add_info(actx->pinfo, cause, &ei_goose_mal_utctime); + proto_tree_add_expert(tree, actx->pinfo, &ei_goose_mal_utctime, tvb, offset, len); if(hf_index >= 0) { proto_tree_add_string(tree, hf_index, tvb, offset, len, "????"); |