Count correct number of items in indef sequence-of and set-of.

svn path=/trunk/; revision=26451
This commit is contained in:
Stig Bjørlykke 2008-10-14 16:28:54 +00:00
parent 3f2f2cd9b6
commit c2515c5abd
1 changed files with 6 additions and 0 deletions

View File

@ -3273,6 +3273,9 @@ printf("SQ OF dissect_ber_sq_of(%s) entered\n",name);
*/
/* XXX Do we really need to count them at all ? ronnie */
if(tvb_length_remaining(tvb, offset)==tvb_reported_length_remaining(tvb, offset)){
if (ind) {
cnt--; /* don't count EOC as an item */
}
while (offset < end_offset){
guint32 len;
gint s_offset;
@ -3480,6 +3483,9 @@ printf("SQ OF dissect_ber_old_sq_of(%s) entered\n",name);
*/
/* XXX Do we really need to count them at all ? ronnie */
if(tvb_length_remaining(tvb, offset)==tvb_reported_length_remaining(tvb, offset)){
if (ind) {
cnt--; /* don't count EOC as an item */
}
while (offset < end_offset){
guint32 len;
gint s_offset;