diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-11-15 21:22:01 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-11-15 21:22:01 +0000 |
commit | 2103e7f38a2542abec6464362abfeed2f4319961 (patch) | |
tree | c20416a4c04507b9ea39334e8d5aa697fcd28d58 /epan/dissectors/packet-uts.c | |
parent | 3b387d1b8ea69abe10f8031bd55c9cd974a13237 (diff) |
tvb_[reported_]length_remaining can return -1
svn path=/trunk/; revision=39870
Diffstat (limited to 'epan/dissectors/packet-uts.c')
-rw-r--r-- | epan/dissectors/packet-uts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-uts.c b/epan/dissectors/packet-uts.c index 0c90b334a5..b3aefeda62 100644 --- a/epan/dissectors/packet-uts.c +++ b/epan/dissectors/packet-uts.c @@ -241,7 +241,7 @@ dissect_uts(tvbuff_t *tvb, packet_info *pinfo _U_ , proto_tree *tree) } } - while (tvb_length_remaining(tvb, offset)) { /* now look for the ETX */ + while (tvb_length_remaining(tvb, offset) > 0) { /* now look for the ETX */ if ((tvb_get_guint8(tvb, offset) & 0x7f) == ETX) { if (header_length == -1) header_length = offset; /* the header ends at an STX, or if not found, the ETX */ |