diff options
Diffstat (limited to 'asn1/goose/goose.cnf')
-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, "????"); |