aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtcp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-04-15 21:25:05 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-04-15 21:25:05 +0000
commit0567c686dcea24b4646ef64a644473c9c1220ec3 (patch)
tree03154f54787571fa7e9ca72f9ccd875028f8c880 /packet-rtcp.c
parent274d89572c02b28328fe70b8d3548e7d7c64f15d (diff)
From Jason Lango: a hack to get SDES length correct on QT packets.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5167 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r--packet-rtcp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c
index 20dc11a369..d822fefa0c 100644
--- a/packet-rtcp.c
+++ b/packet-rtcp.c
@@ -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 */