diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-09-21 10:22:14 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-09-21 10:22:14 +0000 |
commit | 853067c739b7349234b510f5972fe9e2013f4814 (patch) | |
tree | 19284a162213680aa654e647214c6e401a163acd /epan/dissectors/packet-sip.c | |
parent | 8e8d66c2a9d7ca60dd43dd7f11c22dfa4e88b35b (diff) |
bugfix: break out of an endless loop, if dissect_sip_common() returns 0 or -2, found in a file send to me by david martin in an attempt to fix #372
svn path=/trunk/; revision=15926
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r-- | epan/dissectors/packet-sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index 0047d4e214..94fe2801b9 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -978,7 +978,7 @@ dissect_sip_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) while (tvb_reported_length_remaining(tvb, offset) != 0) { len = dissect_sip_common(tvb, offset, pinfo, tree, TRUE, TRUE); - if (len == -1) + if (len <= 0) break; offset += len; } |