summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-ber.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index eb599b9ddd..fbd4c0eaaf 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -2560,18 +2560,6 @@ printf("CHOICE dissect_ber_choice(%s) entered len:%d\n",name,tvb_length_remainin
offset=get_ber_length(tvb, offset, &len, &ind);
end_offset = offset + len ;
- /* do not stop processing if the length has the (illegal) value of zero */
- if(len == 0) {
- if(show_internal_ber_fields) {
- offset=dissect_ber_identifier(actx->pinfo, tree, tvb, start_offset, NULL, NULL, NULL);
- offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
- }
- item = proto_tree_add_text(tree, tvb, offset, len, "BER Error: Empty choice field was found");
- proto_item_set_expert_flags(item, PI_MALFORMED, PI_WARN);
- expert_add_info_format(actx->pinfo, item, PI_MALFORMED, PI_WARN, "BER Error: Empty choice field was found");
- return offset;
- }
-
/* Some sanity checks.
* The hf field passed to us MUST be an integer type
*/
@@ -2798,18 +2786,6 @@ printf("CHOICE dissect_ber_old_choice(%s) entered len:%d\n",name,tvb_length_rema
offset=get_ber_length(tvb, offset, &len, &ind);
end_offset = offset + len ;
- /* do not stop processing if the length has the (illegal) value of zero */
- if(len == 0) {
- if(show_internal_ber_fields) {
- offset=dissect_ber_identifier(actx->pinfo, tree, tvb, start_offset, NULL, NULL, NULL);
- offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
- }
- item = proto_tree_add_text(tree, tvb, offset, len, "BER Error: Empty choice field was found");
- proto_item_set_expert_flags(item, PI_MALFORMED, PI_WARN);
- expert_add_info_format(actx->pinfo, item, PI_MALFORMED, PI_WARN, "BER Error: Empty choice field was found");
- return offset;
- }
-
/* Some sanity checks.
* The hf field passed to us MUST be an integer type
*/