bugfix: similar problem than the previous one fixed by Gerald

svn path=/trunk/; revision=13898
This commit is contained in:
Ulf Lamping 2005-03-25 17:24:48 +00:00
parent c0ce016153
commit a52bb15613
1 changed files with 2 additions and 1 deletions

View File

@ -2457,7 +2457,8 @@ dissect_bap_phone_delta_opt(const ip_tcp_opt *optp, tvbuff_t *tvb,
offset += 2;
length -= 2;
while (length > 0) {
/* XXX - Should we check for a maximum length instead of using a cast? */
while (((gint) length) > 0) {
subopt_type = tvb_get_guint8(tvb, offset);
subopt_len = tvb_get_guint8(tvb, offset + 1);
ti = proto_tree_add_text(field_tree, tvb, offset, subopt_len,