aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-07-17 10:37:31 +0000
committerGuy Harris <guy@alum.mit.edu>2002-07-17 10:37:31 +0000
commit91ab6eb809d139ae563a905677824e1c7a2b3622 (patch)
tree97c197df15f9de941e64d6a8c8db2bf6610a42f3 /packet-rtcp.c
parent47b147ffd119809198871932874f6fc5b7e6e836 (diff)
Change a "proto_tree_add_uint()" call to use "proto_tree_add_item()".
When dissecting a BYE packet, bump the chunk count when dissecting the SSRC/CSRC identifiers, so the loop terminates properly. svn path=/trunk/; revision=5892
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r--packet-rtcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c
index d822fefa0c..351f2ebed0 100644
--- a/packet-rtcp.c
+++ b/packet-rtcp.c
@@ -1,6 +1,6 @@
/* packet-rtcp.c
*
- * $Id: packet-rtcp.c,v 1.32 2002/04/15 21:25:05 guy Exp $
+ * $Id: packet-rtcp.c,v 1.33 2002/07/17 10:37:31 guy Exp $
*
* Routines for RTCP dissection
* RTCP = Real-time Transport Control Protocol
@@ -382,8 +382,9 @@ dissect_rtcp_bye( tvbuff_t *tvb, int offset, proto_tree *tree,
while ( chunk <= count ) {
/* source identifier, 32 bits */
- proto_tree_add_uint( tree, hf_rtcp_ssrc_source, tvb, offset, 4, tvb_get_ntohl( tvb, offset ) );
+ proto_tree_add_item( tree, hf_rtcp_ssrc_source, tvb, offset, 4, FALSE);
offset += 4;
+ chunk++;
}
if ( tvb_reported_length_remaining( tvb, offset ) > 0 ) {