From 77e69e06e193df47ef99cc1cf24dd305c2395ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 19 Nov 2007 07:25:06 +0000 Subject: Reverted r23485 and r23486, this was not a correct fix. svn path=/trunk/; revision=23489 --- epan/dissectors/packet-ber.c | 24 ------------------------ 1 file changed, 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 */ -- cgit v1.2.1