diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-17 10:37:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-17 10:37:31 +0000 |
commit | 91ab6eb809d139ae563a905677824e1c7a2b3622 (patch) | |
tree | 97c197df15f9de941e64d6a8c8db2bf6610a42f3 /packet-rtcp.c | |
parent | 47b147ffd119809198871932874f6fc5b7e6e836 (diff) | |
download | wireshark-91ab6eb809d139ae563a905677824e1c7a2b3622.tar.gz wireshark-91ab6eb809d139ae563a905677824e1c7a2b3622.tar.bz2 wireshark-91ab6eb809d139ae563a905677824e1c7a2b3622.zip |
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.c | 5 |
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 ) { |