bugfix: break out of an endless loop, if dissect_sip_common() returns 0 or -2, found...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Sep 2005 10:22:14 +0000 (10:22 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Sep 2005 10:22:14 +0000 (10:22 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15926 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-sip.c

index 0047d4e214c47efa2f27b70e1190c647f8ec5da9..94fe2801b99b4c4e1ae86ed19e4706462a9b05c6 100644 (file)
@@ -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;
        }