From 2aa5ef90682bd9dbecc23477a1030a02d3d8952e Mon Sep 17 00:00:00 2001 From: etxrab Date: Mon, 13 Aug 2007 16:41:16 +0000 Subject: =?UTF-8?q?http://bugs.wireshark.org/bugzilla/show=5Fbug.cgi=3Fid?= =?UTF-8?q?=3D1739=20Fro=20Stig=20Bj=C3=B8rlykke:=201.=20BER:=20Added=20su?= =?UTF-8?q?pport=20for=20empty=20indef=20SET=202.=20RTSE:=20Added=20fragme?= =?UTF-8?q?nt=20length=20in=20COL=5FINFO=203.=20IMF:=20Use=20correct=20hf?= =?UTF-8?q?=5Fid=20for=20extension=20value=204.=20DOP:=20Fix=20typo=20in?= =?UTF-8?q?=20COL=5FINFO=20oid=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22492 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ber.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-ber.c') diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 50b4064191..32f112c08a 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -2117,7 +2117,7 @@ printf("SET dissect_ber_set(%s) calling subdissector\n",name); /* if we consumed some bytes, or we knew the length was zero (during the first pass only) */ - if(count || (first_pass && (len == 0))) { + if(count || (first_pass && (len == 0 || (ind_field == 1 && len == 2)))) { /* we found it! */ if(set_idx < MAX_SET_ELEMENTS) mandatory_fields &= ~(1 << set_idx); @@ -2378,7 +2378,7 @@ printf("SET dissect_old_ber_set(%s) calling subdissector\n",name); /* if we consumed some bytes, or we knew the length was zero (during the first pass only) */ - if(count || (first_pass && (len == 0))) { + if(count || (first_pass && (len == 0 || (ind_field == 1 && len == 2)))) { /* we found it! */ if(set_idx < MAX_SET_ELEMENTS) mandatory_fields &= ~(1 << set_idx); -- cgit v1.2.3