aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/sv/sv.cnf
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/sv/sv.cnf')
-rw-r--r--asn1/sv/sv.cnf8
1 files changed, 2 insertions, 6 deletions
diff --git a/asn1/sv/sv.cnf b/asn1/sv/sv.cnf
index fe9a4ee72a..e448da20b0 100644
--- a/asn1/sv/sv.cnf
+++ b/asn1/sv/sv.cnf
@@ -23,7 +23,6 @@
#.FN_BODY UtcTime
guint32 len;
- proto_item *cause;
guint32 seconds;
guint32 fraction;
guint32 nanoseconds;
@@ -34,11 +33,8 @@
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_sv_mal_utctime);
+ proto_tree_add_expert_format(tree, actx->pinfo, &ei_sv_mal_utctime, tvb, offset, len,
+ "BER Error: malformed UTCTime encoding, length must be 8 bytes");
if(hf_index >= 0)
{
proto_tree_add_string(tree, hf_index, tvb, offset, len, "????");