Fix the parenthesization of an expression.

svn path=/trunk/; revision=15514
This commit is contained in:
Guy Harris 2005-08-23 08:01:46 +00:00
parent 9362605183
commit 9fa5d5fd9e
1 changed files with 2 additions and 1 deletions

View File

@ -432,9 +432,10 @@ get_ber_length(proto_tree *tree, tvbuff_t *tvb, int offset, guint32 *length, gbo
tmp_offset = offset;
/* ok in here we can traverse the BER to find the length, this will fix most indefinite length issues */
/* Assumption here is that indefinite length is always used on constructed types*/
while ((tvb_reported_length_remaining(tvb,offset)>0) && ( tvb_get_guint8(tvb, offset)) || (tvb_get_guint8(tvb,offset+1)))
/* check for EOC */
while ((tvb_reported_length_remaining(tvb,offset)>0) && ( tvb_get_guint8(tvb, offset) || tvb_get_guint8(tvb,offset+1)))
{
/* not an EOC at offset */
s_offset=offset;
offset= get_ber_identifier(tvb, offset, &tclass, &tpc, &ttag);
offset= get_ber_length(tree,tvb,offset, &tmp_len, NULL);