diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-10-14 16:28:54 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-10-14 16:28:54 +0000 |
commit | eab79a646e81d499e6ef3b7051cd7d27d446abb9 (patch) | |
tree | a0bb86fb799bf1a113c95787a92edfbfc0909936 /epan/dissectors/packet-ber.c | |
parent | ae2a839a0b98ea443a7d71d3dd31a6a123e4fe30 (diff) |
Count correct number of items in indef sequence-of and set-of.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26451 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r-- | epan/dissectors/packet-ber.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 91cf571bb0..ade78fd215 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -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; |