aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-per.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-04 06:22:15 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-04 06:22:15 +0000
commit3d17e592d50f5e57ed42c7d0d36bb4cd8ccfce70 (patch)
tree24bab1e29e0ebc28ca181b91b9399869c1e44506 /epan/dissectors/packet-per.c
parent241958363d3afdd0858dc9be680716e00524ddef (diff)
From Pascal Quantin:
Do not trigger an assert when reaching an unknown extension in CHOICE and SEQUENCE types. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6087 svn path=/trunk/; revision=37886
Diffstat (limited to 'epan/dissectors/packet-per.c')
-rw-r--r--epan/dissectors/packet-per.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c
index 96d99c220d..b769e59ec0 100644
--- a/epan/dissectors/packet-per.c
+++ b/epan/dissectors/packet-per.c
@@ -1773,7 +1773,7 @@ DEBUG_ENTRY("dissect_per_choice");
} else {
offset += ext_length * 8;
proto_tree_add_text(tree, tvb, old_offset>>3, BLEN(old_offset, offset), "Choice no. %d in extension", choice_index);
- PER_NOT_DECODED_YET("unknown choice extension");
+ expert_add_info_format(actx->pinfo, choice_item, PI_UNDECODED, PI_NOTE, "unknown choice extension");
}
}
@@ -1980,7 +1980,7 @@ DEBUG_ENTRY("dissect_per_sequence");
if(i>=num_known_extensions){
/* we dont know how to decode this extension */
offset+=length*8;
- PER_NOT_DECODED_YET("unknown sequence extension");
+ expert_add_info_format(actx->pinfo, item, PI_UNDECODED, PI_NOTE, "unknown sequence extension");
continue;
}