From Jason Lango: a hack to get SDES length correct on QT packets.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Apr 2002 21:25:05 +0000 (21:25 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Apr 2002 21:25:05 +0000 (21:25 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5167 f5534014-38df-0310-8fa8-9805f1628bb7

packet-rtcp.c

index 20dc11a369720b27b6ac168626288c330e257804..d822fefa0cce5881d3a261692c10415c520a3de6 100644 (file)
@@ -1,6 +1,6 @@
 /* packet-rtcp.c
  *
- * $Id: packet-rtcp.c,v 1.31 2002/04/09 09:04:33 guy Exp $
+ * $Id: packet-rtcp.c,v 1.32 2002/04/15 21:25:05 guy Exp $
  *
  * Routines for RTCP dissection
  * RTCP = Real-time Transport Control Protocol
@@ -405,7 +405,7 @@ dissect_rtcp_bye( tvbuff_t *tvb, int offset, proto_tree *tree,
 
 }
 
-static int
+static void
 dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree,
     unsigned int count )
 {
@@ -505,9 +505,6 @@ dissect_rtcp_sdes( tvbuff_t *tvb, int offset, proto_tree *tree,
 
                chunk++;
        }
-
-
-       return offset;
 }
 
 static int
@@ -738,7 +735,8 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
                                        /* Packet length in 32 bit words MINUS one, 16 bits */
                                        proto_tree_add_uint( rtcp_tree, hf_rtcp_length, tvb, offset, 2, tvb_get_ntohs( tvb, offset ) );
                                        offset += 2;
-                                       offset = dissect_rtcp_sdes( tvb, offset, rtcp_tree, elem_count );
+                                       dissect_rtcp_sdes( tvb, offset, rtcp_tree, elem_count );
+                                       offset += packet_length - 4;
                                        break;
                                case RTCP_BYE:
                                        /* Source count, 5 bits */