Count correct number of items in indef sequence-of and set-of.
svn path=/trunk/; revision=26451
This commit is contained in:
parent
3f2f2cd9b6
commit
c2515c5abd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue